An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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".

Ecosystem
proxy.golang.org
Latest Release
v0.11.1
7 months ago
Versions
9
Dependent Packages
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
Rankings on proxy.golang.org
Overall Top 7.0%
Dependent packages Top 4.6%