Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: Ullaakut/disgo

Fix capitalization

11 Nov 18:25

Choose a tag to compare

This release changes the capitalization of the repo owner in all imports. This should fix the issues encountered by some people. If it causes further issues, please create an issue here to let me know.

New package architecture

20 Mar 08:24

Choose a tag to compare

  • Console renamed to terminal
  • Console and Prompter merged into terminal
  • Formatting and symbols moved to a style package
  • Documentation updates

Step system & global console/prompter

19 Mar 09:51

Choose a tag to compare

  • 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

10 Mar 20:50

Choose a tag to compare

First release

Simple output library for go CLIs.

Disgo provides three essential features for most user-friendly CLI applications:

  1. 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.
  2. 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.
  3. Simple user prompting (in github.com/Ullaakut/disgo/prompter)
    • prompter.Confirm asks the user for a confirmation (true/false). Supports many inputs and is customizable (labels, choices and parsers can be changed easily).