/cobrautil

A collection of utility functions when using Cobra.

Primary LanguageGoApache License 2.0Apache-2.0

cobrautil

A collection of utility functions when using Cobra.

Features include:

  • Synchronizing Viper environment variables
  • "Must" functions to fetch flags and panic if they do not exist
  • Middleware chaining of cobra.Command RunFuncs

See some examples in the documentation.