v3.0.0 🎉
Fix install command
This commit is contained in:
parent
eaec27d1df
commit
70fa7b8887
@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## 2019/03/07
|
## [3.0.0] - 2019/03/07
|
||||||
|
|
||||||
### Changed
|
### 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
|
[#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
|
||||||
|
14
README.md
14
README.md
@ -6,16 +6,16 @@ termui is a cross-platform and fully-customizable terminal dashboard and widget
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Built in widget implementations for common use cases
|
- Several premade widgets for common use cases
|
||||||
- Utilities to create custom widgets
|
- Easily create custom widgets
|
||||||
- Relative widget positioning using a grid layout
|
- Position widgets either in a relative grid or with absolute coordinates
|
||||||
- Event system for keyboard, mouse and terminal resizing events
|
- Keyboard, mouse, and terminal resizing events
|
||||||
- Colors and styling
|
- Colors and styling
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get -u github.com/gizak/termui
|
go get github.com/gizak/termui/v3
|
||||||
```
|
```
|
||||||
|
|
||||||
## Hello World
|
## Hello World
|
||||||
@ -26,8 +26,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -9,8 +9,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"image"
|
"image"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -5,8 +5,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -18,8 +18,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -9,8 +9,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -22,7 +22,7 @@ func main() {
|
|||||||
l := widgets.NewList()
|
l := widgets.NewList()
|
||||||
l.Title = "List"
|
l.Title = "List"
|
||||||
l.Rows = []string{
|
l.Rows = []string{
|
||||||
"[0] github.com/gizak/termui",
|
"[0] github.com/gizak/termui/v3",
|
||||||
"[1] [你好,世界](fg:blue)",
|
"[1] [你好,世界](fg:blue)",
|
||||||
"[2] [こんにちは世界](fg:red)",
|
"[2] [こんにちは世界](fg:red)",
|
||||||
"[3] [color](fg:white,bg:green) output",
|
"[3] [color](fg:white,bg:green) output",
|
||||||
|
@ -9,8 +9,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
var run = true
|
var run = true
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -9,8 +9,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -9,8 +9,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -9,8 +9,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -9,8 +9,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/gizak/termui/widgets"
|
"github.com/gizak/termui/v3/widgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// logs all events to the termui window
|
// logs all events to the termui window
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/gizak/termui
|
module github.com/gizak/termui/v3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/cjbassi/drawille-go v0.0.0-20190126131713-27dc511fe6fd
|
github.com/cjbassi/drawille-go v0.0.0-20190126131713-27dc511fe6fd
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
rw "github.com/mattn/go-runewidth"
|
rw "github.com/mattn/go-runewidth"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BarChart struct {
|
type BarChart struct {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Gauge struct {
|
type Gauge struct {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"image"
|
"image"
|
||||||
"image/color"
|
"image/color"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Image struct {
|
type Image struct {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
rw "github.com/mattn/go-runewidth"
|
rw "github.com/mattn/go-runewidth"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type List struct {
|
type List struct {
|
||||||
|
@ -7,7 +7,7 @@ package widgets
|
|||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Paragraph struct {
|
type Paragraph struct {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"image"
|
"image"
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Plot has two modes: line(default) and scatter.
|
// Plot has two modes: line(default) and scatter.
|
||||||
|
@ -7,7 +7,7 @@ package widgets
|
|||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Sparkline is like: ▅▆▂▂▅▇▂▂▃▆▆▆▅▃. The data points should be non-negative integers.
|
// Sparkline is like: ▅▆▂▂▅▇▂▂▃▆▆▆▅▃. The data points should be non-negative integers.
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
rw "github.com/mattn/go-runewidth"
|
rw "github.com/mattn/go-runewidth"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StackedBarChart struct {
|
type StackedBarChart struct {
|
||||||
|
@ -7,7 +7,7 @@ package widgets
|
|||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
. "github.com/gizak/termui"
|
. "github.com/gizak/termui/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*Table is like:
|
/*Table is like:
|
||||||
|
@ -7,7 +7,7 @@ package widgets
|
|||||||
import (
|
import (
|
||||||
"image"
|
"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.
|
// TabPane is a renderable widget which can be used to conditionally render certain tabs/views.
|
||||||
|
Loading…
Reference in New Issue
Block a user