{"modulePath":"github.com/ReadyStackFree/cli","version":"v29.9.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commands\n\n## Functions\n\n```go\nfunc Commands() []func(command.Cli) *cobra.Command\n```\nCommands returns the internal queue holding registered commands added via [Register](#Register) and [RegisterLegacy](#RegisterLegacy).\n\n```go\nfunc Register(f func(command.Cli) *cobra.Command)\n```\nRegister pushes the passed in command into an internal queue which can be retrieved using the [Commands](#Commands) function. It is designed to be called in an init function and is not safe for concurrent use.\n\n```go\nfunc RegisterLegacy(f func(command.Cli) *cobra.Command)\n```\nRegisterLegacy functions similarly to [Register](#Register), but it checks the \"DOCKER\\_HIDE\\_LEGACY\\_COMMANDS\" environment variable and if it has been set and is non-empty, the command will be hidden. It is designed to be called in an init function and is not safe for concurrent use.\n\n","path":"github.com/ReadyStackFree/cli/internal/commands","name":"commands","synopsis":"","isRedistributable":true}
