cliui is a terminal UI helper module extracted from gookit/gcli.
It focuses on three core areas for CLI applications:
show: structured terminal output helpersinteract: interactive input helpersprogress: progress and loading display helpers
go get github.com/gookit/cliuiOr install a sub package directly:
go get github.com/gookit/cliui/show
go get github.com/gookit/cliui/progress
go get github.com/gookit/cliui/interactProvides structured terminal output helpers for displaying formatted content in CLI applications. It includes components such as table, title, banner, list, alert and JSON output.
Import:
github.com/gookit/cliui/showDetails: show/README.md
Provides interactive input helpers for CLI programs. It supports prompt, confirm, question, select, multi-select, password input and other common terminal interaction patterns.
Import:
github.com/gookit/cliui/interactDetails: interact/README.md
Provides progress and loading display helpers for long-running tasks. It includes progress bars, text bars, spinner/loading indicators, counters and dynamic text output.
Import:
github.com/gookit/cliui/progressDetails: progress/README.md
If you are migrating from gookit/gcli/v3, the corresponding package paths are:
github.com/gookit/gcli/v3/show->github.com/gookit/cliui/showgithub.com/gookit/gcli/v3/interact->github.com/gookit/cliui/interactgithub.com/gookit/gcli/v3/progress->github.com/gookit/cliui/progress
go test ./...MIT