Skip to content

v0.3.0

Compare
Choose a tag to compare
@cszatmary cszatmary released this 21 Jan 21:32
· 5 commits to master since this release
ee8dcf3

New packages:

log: The new log package provides a simple yet powerful structured logger that can log at different levels.
The Logger type implements the progress.Logger and progress.OutputLogger interfaces, making it easy to use with the progress package.

Minor Changes:

progress:

  • Added RunOptions.Count field to allow specifying a count for the spinner run by Run.

Breaking Changes:

command:

  • Renamed IsAvailable to Exists.

fatal:

  • Redesigned fatal package.
  • The Error type can be used to represent a fatal error that requires the application to terminate with context.
  • The Exiter type allows exiting the application, with different options.

progress:

  • SpinnerTracker has been moved to the spinner package. Use spinner.Tracker instead now.
  • RunParallelOptions.Concurrency is now type int instead of uint.
  • DefaultConcurrency now returns an int instead of a uint.