Releases: Ullaakut/disgo
Releases · Ullaakut/disgo
Fix capitalization
New package architecture
- Console renamed to terminal
- Console and Prompter merged into terminal
- Formatting and symbols moved to a
stylepackage - Documentation updates
Step system & global console/prompter
- Documentation improvements
- Renaming of every occurrence of log, logger and logging to console and output depending on the context
- Renaming of the disgo/logger package to disgo/console
- Adds methods to the disgo console
- StartStep
- StartStepf
- EndStep
- FailStep
- FailStepf
- Makes the disgo console usable as a global prompter
- Makes the disgo prompter usable as a global prompter
- Removes old examples for easier maintenance
v0.1.0
First release
Simple output library for go CLIs.
Disgo provides three essential features for most user-friendly CLI applications:
- Simple output levels (in
github.com/Ullaakut/disgo/logger)- Debug outputs are like normal outputs, but are written only on a logger with enabled debug.
- Error outputs can optionally be written on an error writer.
- Info outputs are written on the standard writer, usually stdout, but it's configurable.
- Output formatting (in
github.com/Ullaakut/disgo/logger)- Important logs can be passed to
logger.Important()which will format them into bold white text. - Success logs can be passed to
logger.Success()which will format them into bold green text. - Failure logs can be passed to
logger.Failure()which will format them into bold red text. - Link logs can be passed to
logger.Link()which will format them into uinderlined blue text. - Trace logs can be passed to
logger.Trace()which will format them into gray text.
- Important logs can be passed to
- Simple user prompting (in
github.com/Ullaakut/disgo/prompter)prompter.Confirmasks the user for a confirmation (true/false). Supports many inputs and is customizable (labels, choices and parsers can be changed easily).