v3.0.0 🎉

Fix install command
This commit is contained in:
Caleb Bassi 2019-03-07 02:50:20 -08:00
parent eaec27d1df
commit 70fa7b8887
30 changed files with 53 additions and 52 deletions

View File

@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## 2019/03/07
## [3.0.0] - 2019/03/07
### Changed
@ -117,4 +117,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#126]: https://github.com/gizak/termui/pull/126
[Unreleased]: https://github.com/gizak/termui/compare/v2.3.0...HEAD
[Unreleased]: https://github.com/gizak/termui/compare/v3.0.0...HEAD
[3.0.0]: https://github.com/gizak/termui/compare/v2.3.0...HEAD

View File

@ -6,16 +6,16 @@ termui is a cross-platform and fully-customizable terminal dashboard and widget
## Features
- Built in widget implementations for common use cases
- Utilities to create custom widgets
- Relative widget positioning using a grid layout
- Event system for keyboard, mouse and terminal resizing events
- Several premade widgets for common use cases
- Easily create custom widgets
- Position widgets either in a relative grid or with absolute coordinates
- Keyboard, mouse, and terminal resizing events
- Colors and styling
## Installation
```bash
go get -u github.com/gizak/termui
go get github.com/gizak/termui/v3
```
## Hello World
@ -26,8 +26,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -9,8 +9,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -6,7 +6,7 @@ import (
"image"
"log"
ui "github.com/gizak/termui"
ui "github.com/gizak/termui/v3"
)
func main() {

View File

@ -11,8 +11,8 @@ import (
"math"
"time"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -10,8 +10,8 @@ import (
"fmt"
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -11,8 +11,8 @@ import (
"math"
"time"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -5,8 +5,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -18,8 +18,8 @@ import (
"os"
"strings"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -9,8 +9,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {
@ -22,7 +22,7 @@ func main() {
l := widgets.NewList()
l.Title = "List"
l.Rows = []string{
"[0] github.com/gizak/termui",
"[0] github.com/gizak/termui/v3",
"[1] [你好,世界](fg:blue)",
"[2] [こんにちは世界](fg:red)",
"[3] [color](fg:white,bg:green) output",

View File

@ -9,8 +9,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -9,8 +9,8 @@ import (
"math/rand"
"time"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
var run = true

View File

@ -10,8 +10,8 @@ import (
"log"
"math"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -9,8 +9,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -9,8 +9,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -9,8 +9,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -9,8 +9,8 @@ package main
import (
"log"
ui "github.com/gizak/termui"
"github.com/gizak/termui/widgets"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {

View File

@ -10,7 +10,7 @@ import (
"fmt"
"log"
ui "github.com/gizak/termui"
ui "github.com/gizak/termui/v3"
)
// logs all events to the termui window

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/gizak/termui
module github.com/gizak/termui/v3
require (
github.com/cjbassi/drawille-go v0.0.0-20190126131713-27dc511fe6fd

View File

@ -10,7 +10,7 @@ import (
rw "github.com/mattn/go-runewidth"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
type BarChart struct {

View File

@ -8,7 +8,7 @@ import (
"fmt"
"image"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
type Gauge struct {

View File

@ -8,7 +8,7 @@ import (
"image"
"image/color"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
type Image struct {

View File

@ -9,7 +9,7 @@ import (
rw "github.com/mattn/go-runewidth"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
type List struct {

View File

@ -7,7 +7,7 @@ package widgets
import (
"image"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
type Paragraph struct {

View File

@ -4,7 +4,7 @@ import (
"image"
"math"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
const (

View File

@ -8,7 +8,7 @@ import (
"fmt"
"image"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
// Plot has two modes: line(default) and scatter.

View File

@ -7,7 +7,7 @@ package widgets
import (
"image"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
// Sparkline is like: ▅▆▂▂▅▇▂▂▃▆▆▆▅▃. The data points should be non-negative integers.

View File

@ -10,7 +10,7 @@ import (
rw "github.com/mattn/go-runewidth"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
type StackedBarChart struct {

View File

@ -7,7 +7,7 @@ package widgets
import (
"image"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
/*Table is like:

View File

@ -7,7 +7,7 @@ package widgets
import (
"image"
. "github.com/gizak/termui"
. "github.com/gizak/termui/v3"
)
// TabPane is a renderable widget which can be used to conditionally render certain tabs/views.