blob: 9c8af5e6a37936990b4f3388f2c0f709a303b069 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# 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
[Cobra]: https://github.com/spf13/cobra
[Viper]: https://github.com/spf13/viper
[See some examples in the documentation.](https://pkg.go.dev/github.com/jzelinskie/cobrautil#pkg-examples)
|