A Commander for modern Go CLI interactions
216.92 KB
built 2026-12-06 15:51:46 GMT
Description
Cobra is a library providing a simple interface to create powerful modern CLI
interfaces similar to git & go tools.
Cobra is also an application that will generate your application scaffolding to
rapidly develop a Cobra-based application.
Cobra provides:
- Easy subcommand-based CLIs: app server, app fetch, etc.
- Fully POSIX-compliant flags (including short & long versions)
- Nested subcommands
- Global, local and cascading flags
- Easy generation of applications & commands with cobra init appname & cobra
add cmdname
- Intelligent suggestions (app srver... did you mean app server?)
- Automatic help generation for commands and flags
- Automatic help flag recognition of -h, --help, etc.
- Automatically generated bash autocomplete for your application
- Automatically generated man pages for your application
- Command aliases so you can change things without breaking them
- The flexibility to define your own help, usage, etc.
- Optional tight integration with viper for 12-factor apps
Dependencies
8 totalRequires7
- go-rpm-macros
- golang(github.com/cpuguy83/go-md2man/v2/md2man)
- golang(github.com/spf13/pflag)
- golang(gopkg.in/yaml.v3)
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides1
- golang-github-spf13-cobra-devel = 1.8.1-2.rvmock0_nc.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| cobra-1.8.1.tar.gz | 187.85 KB |
| golang-github-spf13-cobra.spec | 10.62 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
