github.com/reeflective/flags
Package flags provides a powerful, reflection-based way to generate modern command-line interfaces (CLIs) from Go structs. It uses spf13/cobra for command execution and rsteube/carapace for advanced shell completion. The primary workflow is to define your CLI structure (commands, flags, positional arguments) using Go structs and field tags, and then call flags.ParseCommands() to create a fully configured *cobra.Command tree, complete with shell completions, ready for execution. For useful, pre-built flag types like Counter or HexBytes, see the subpackage at "github.com/reeflective/flags/types".
proxy.golang.org
v0.11.1
7 months ago
9
1
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/reeflective/flags
spec |
| License | BSD-3-Clause |
| Namespace | github.com/reeflective |
| First Release | almost 4 years ago |
| Last Synced | 5 days ago |
Repository
| Stars | 14 on GitHub |
| Forks | 2 on GitHub |