https://github.com/masterminds/kitt
Make your CLI apps pretty
https://github.com/masterminds/kitt
Last synced: over 1 year ago
JSON representation
Make your CLI apps pretty
- Host: GitHub
- URL: https://github.com/masterminds/kitt
- Owner: Masterminds
- License: other
- Created: 2016-02-03T13:36:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T15:53:01.000Z (over 10 years ago)
- Last Synced: 2025-03-24T12:48:02.950Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 16
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kitt: Make CLI Pretty
Kitt is a small Go library for improving CLI UIs.
It currently provides the following:
- A configurable progress indicator.
## Usage
Here's an example progress indicator.
```go
package main
import (
"time"
"github.com/Masterminds/kitt/progress"
)
func main() {
p := progress.NewIndicator()
p.Start("Starting")
time.Sleep(2 * time.Second)
p.Message("Still going")
time.Sleep(2 * time.Second)
p.Done("Done")
time.Sleep(20 * time.Millisecond)
println("The end")
}
```
There are all kinds of things you can customize, including the graph
used for the meter itself, as well as the timing.
For more, see the `_examples` directory.