From 70fa7b8887822d93439f585dc397004f2d678a8d Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Thu, 7 Mar 2019 02:50:20 -0800 Subject: [PATCH] =?UTF-8?q?v3.0.0=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix install command --- CHANGELOG.md | 5 +++-- README.md | 14 +++++++------- _examples/barchart.go | 4 ++-- _examples/canvas.go | 2 +- _examples/demo.go | 4 ++-- _examples/gauge.go | 4 ++-- _examples/grid.go | 4 ++-- _examples/hello_world.go | 4 ++-- _examples/image.go | 4 ++-- _examples/list.go | 6 +++--- _examples/paragraph.go | 4 ++-- _examples/piechart.go | 4 ++-- _examples/plot.go | 4 ++-- _examples/sparkline.go | 4 ++-- _examples/stacked_barchart.go | 4 ++-- _examples/table.go | 4 ++-- _examples/tabs.go | 4 ++-- _test/log_events.go | 2 +- go.mod | 2 +- widgets/barchart.go | 2 +- widgets/gauge.go | 2 +- widgets/image.go | 2 +- widgets/list.go | 2 +- widgets/paragraph.go | 2 +- widgets/piechart.go | 2 +- widgets/plot.go | 2 +- widgets/sparkline.go | 2 +- widgets/stacked_barchart.go | 2 +- widgets/table.go | 2 +- widgets/tabs.go | 2 +- 30 files changed, 53 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc0c555..fd6d159 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 43e2465..2566073 100644 --- a/README.md +++ b/README.md @@ -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() { diff --git a/_examples/barchart.go b/_examples/barchart.go index d433ec3..fb6a2ca 100644 --- a/_examples/barchart.go +++ b/_examples/barchart.go @@ -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() { diff --git a/_examples/canvas.go b/_examples/canvas.go index eec079b..5eb7387 100644 --- a/_examples/canvas.go +++ b/_examples/canvas.go @@ -6,7 +6,7 @@ import ( "image" "log" - ui "github.com/gizak/termui" + ui "github.com/gizak/termui/v3" ) func main() { diff --git a/_examples/demo.go b/_examples/demo.go index e1b972d..dd579c3 100644 --- a/_examples/demo.go +++ b/_examples/demo.go @@ -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() { diff --git a/_examples/gauge.go b/_examples/gauge.go index db4b8e3..93bc1ce 100644 --- a/_examples/gauge.go +++ b/_examples/gauge.go @@ -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() { diff --git a/_examples/grid.go b/_examples/grid.go index c80b5a2..8783ef1 100644 --- a/_examples/grid.go +++ b/_examples/grid.go @@ -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() { diff --git a/_examples/hello_world.go b/_examples/hello_world.go index cd7de70..3ff1c02 100644 --- a/_examples/hello_world.go +++ b/_examples/hello_world.go @@ -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() { diff --git a/_examples/image.go b/_examples/image.go index 1a152e3..e0d4aba 100644 --- a/_examples/image.go +++ b/_examples/image.go @@ -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() { diff --git a/_examples/list.go b/_examples/list.go index bec8360..0657191 100644 --- a/_examples/list.go +++ b/_examples/list.go @@ -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", diff --git a/_examples/paragraph.go b/_examples/paragraph.go index 49ab270..819101d 100644 --- a/_examples/paragraph.go +++ b/_examples/paragraph.go @@ -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() { diff --git a/_examples/piechart.go b/_examples/piechart.go index 4937aab..daf81b9 100644 --- a/_examples/piechart.go +++ b/_examples/piechart.go @@ -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 diff --git a/_examples/plot.go b/_examples/plot.go index c78f828..ad71f8a 100644 --- a/_examples/plot.go +++ b/_examples/plot.go @@ -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() { diff --git a/_examples/sparkline.go b/_examples/sparkline.go index dd39dec..388bfb4 100644 --- a/_examples/sparkline.go +++ b/_examples/sparkline.go @@ -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() { diff --git a/_examples/stacked_barchart.go b/_examples/stacked_barchart.go index 88735be..46e0f39 100644 --- a/_examples/stacked_barchart.go +++ b/_examples/stacked_barchart.go @@ -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() { diff --git a/_examples/table.go b/_examples/table.go index 0128c42..af74957 100644 --- a/_examples/table.go +++ b/_examples/table.go @@ -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() { diff --git a/_examples/tabs.go b/_examples/tabs.go index e2a6a33..f6e0641 100644 --- a/_examples/tabs.go +++ b/_examples/tabs.go @@ -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() { diff --git a/_test/log_events.go b/_test/log_events.go index 3196a24..ae948be 100644 --- a/_test/log_events.go +++ b/_test/log_events.go @@ -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 diff --git a/go.mod b/go.mod index ca49f9d..ef0b95f 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/widgets/barchart.go b/widgets/barchart.go index a416a32..d76de3b 100644 --- a/widgets/barchart.go +++ b/widgets/barchart.go @@ -10,7 +10,7 @@ import ( rw "github.com/mattn/go-runewidth" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) type BarChart struct { diff --git a/widgets/gauge.go b/widgets/gauge.go index fcf7b6a..3dd921b 100644 --- a/widgets/gauge.go +++ b/widgets/gauge.go @@ -8,7 +8,7 @@ import ( "fmt" "image" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) type Gauge struct { diff --git a/widgets/image.go b/widgets/image.go index 6bcebdd..280802b 100644 --- a/widgets/image.go +++ b/widgets/image.go @@ -8,7 +8,7 @@ import ( "image" "image/color" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) type Image struct { diff --git a/widgets/list.go b/widgets/list.go index 4f35a19..a4a6cb1 100644 --- a/widgets/list.go +++ b/widgets/list.go @@ -9,7 +9,7 @@ import ( rw "github.com/mattn/go-runewidth" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) type List struct { diff --git a/widgets/paragraph.go b/widgets/paragraph.go index 2c27f99..5b54dd8 100644 --- a/widgets/paragraph.go +++ b/widgets/paragraph.go @@ -7,7 +7,7 @@ package widgets import ( "image" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) type Paragraph struct { diff --git a/widgets/piechart.go b/widgets/piechart.go index cfa5587..24d0fb5 100644 --- a/widgets/piechart.go +++ b/widgets/piechart.go @@ -4,7 +4,7 @@ import ( "image" "math" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) const ( diff --git a/widgets/plot.go b/widgets/plot.go index 2bcdfce..f4870de 100644 --- a/widgets/plot.go +++ b/widgets/plot.go @@ -8,7 +8,7 @@ import ( "fmt" "image" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) // Plot has two modes: line(default) and scatter. diff --git a/widgets/sparkline.go b/widgets/sparkline.go index e70a8df..840a8a7 100644 --- a/widgets/sparkline.go +++ b/widgets/sparkline.go @@ -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. diff --git a/widgets/stacked_barchart.go b/widgets/stacked_barchart.go index 35dbc27..255bb4a 100644 --- a/widgets/stacked_barchart.go +++ b/widgets/stacked_barchart.go @@ -10,7 +10,7 @@ import ( rw "github.com/mattn/go-runewidth" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) type StackedBarChart struct { diff --git a/widgets/table.go b/widgets/table.go index 929580a..05391ad 100644 --- a/widgets/table.go +++ b/widgets/table.go @@ -7,7 +7,7 @@ package widgets import ( "image" - . "github.com/gizak/termui" + . "github.com/gizak/termui/v3" ) /*Table is like: diff --git a/widgets/tabs.go b/widgets/tabs.go index 9f61c48..8cbc92c 100644 --- a/widgets/tabs.go +++ b/widgets/tabs.go @@ -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.