Go CLI toolkit
UNLICENSE License
A Go module to make interactive CLI applications easier to develop, better looking and visually consistent.
A full list of included packages and how to use them is below.
For information about using coloured text within clinch, please see the tml package.
task
Tasks are single jobs from the users perspective. For example, in the following output:
Running test #1...
Running test #2...
Deploying code...
...each log line represents a single task. Tasks in clinch allow you to beautify these log lines slightly, by showing the status/outcome of each task, and even animate the status while the task is still running. For example:
Full example here.
prompt
The prompt
package provides various methods of gathering user input.
Full examples are available in _examples/prompt:
terminal
The terminal
package allows for more granular control of the terminal. For example, you can use it to show/hide the cursor, get the terminal size, clear the terminal, position the cursor and some other basics.
loading
The loading
package allows for the rendering of animated loading bars, with the additional capability of logging messages to the terminal without disrupting the bar.
Full example here.
You can output coloured and formatted text to the terminal with the external tml module.