Registry / cli / google-subcommands

google-subcommands

JSON →
library1.2.0gogounverified

Package subcommands implements a simple way for a single command to have many subcommands, each of which takes arguments and so forth.

go get github.com/google/subcommands
INSTALL
IMPORT
SIG · GOOGLE-SUBCOMMANDS
G
google-subcommands
cligov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

subcommands
github.com/google/subcommands

Register and execute subcommands

package main import ( "context" "flag" "github.com/google/subcommands" "os" ) func main() { subcommands.Register(subcommands.HelpCommand(), "") flag.Parse() subcommands.Execute(context.Background()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
google-subcommands — go get google-subcommands · libregistry