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]
|
||||
|
||||
## 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
|
||||
|
14
README.md
14
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() {
|
||||
|
@ -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() {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"image"
|
||||
"log"
|
||||
|
||||
ui "github.com/gizak/termui"
|
||||
ui "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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",
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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
2
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
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
type BarChart struct {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
type Gauge struct {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"image"
|
||||
"image/color"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
type Image struct {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
type List struct {
|
||||
|
@ -7,7 +7,7 @@ package widgets
|
||||
import (
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
type Paragraph struct {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"image"
|
||||
"math"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
// Plot has two modes: line(default) and scatter.
|
||||
|
@ -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.
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
type StackedBarChart struct {
|
||||
|
@ -7,7 +7,7 @@ package widgets
|
||||
import (
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui"
|
||||
. "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
||||
/*Table is like:
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user