Documentation
¶
Overview ¶
Command demo shows the visual packages of cli-kit at work. Run it from the module root:
go run ./examples/demo <command>
The commands are:
- pick: choose a release from a list with views and muted rows, then type a text answer and a hidden secret (needs a terminal)
- progress: a progress bar over fake steps, with log lines that step around it and a stalled step that counts down its timeout
- live: a block of lines redrawn in place
- table: a table in every drawn style, or in the format --output names
- theme: the color roles, a painted diff, painted JSON, a stable color per name and a style read from --style
- term: hyperlinks, truncation, wrapping and hostile text made safe
- version: the version, commit and build date
- completion: shell completion scripts, with --install for bash, zsh and fish
Every command keeps its output plain when it does not go to a terminal, so piping it through cat shows what a script would read. --color and --links take auto, always or never.