kitt

module
v0.0.0-...-7e843d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2016 License: MIT

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.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL