Documentation ¶
Overview ¶
Package leg provides helpers to print the most common type of messages used in command line applications.
For simplicity, parameters of the different functions are not validated. It is not fun to check for errors when printing messages. The benefits would not be worth it.
Index ¶
- func Done(message string, scope string)
- func Error(message string, scope string)
- func Head(name string, icon string, version string)
- func Info(message string, scope string)
- func Remove() error
- func Result(message string)
- func Success(message string, scope string)
- func Wait(message string, scope string)
- func Warn(message string, scope string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Done ¶
Done indicates something finished.
- `message`: String to print. - `scope`: Prefix to append.
func Error ¶
Error prints about an errored operation.
- `message`: String to print. - `scope`: Prefix to append.
func Head ¶
Head prints a simple application header/title.
- `name`: Name of the project. - `icon`: Optional icon to display. - `version`: Include also the version.
func Result ¶
func Result(message string)
Result prints to the standard output.
- `message`: String to print.
func Success ¶
Success prints about a correct operation.
- `message`: String to print. - `scope`: Prefix to append.
Types ¶
This section is empty.