cobra
Cobra — CLI application framework for Go (spf13/cobra).
| reference | description |
|---|---|
| commands | Command, AddCommand, subcommand, project structure |
| flags | PersistentFlags, LocalFlags, required, groups |
| arguments | positional args, Args, validators, ExactArgs |
| hooks | PreRun, PostRun, PersistentPreRun, execution order |
| help-usage | help/usage templates, version, command grouping |
| completions | shell completion, ValidArgsFunction, ShellCompDirective |
| viper-integration | config, OnInitialize, BindPFlag, 12-factor |