Documentation ¶
Overview ¶
Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx> SPDX-License-Identifier: Apache-2.0
Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx> SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func CommandList() []*command.Command
- func Execute(version string) error
- func FromCobra(cc *cobra.Command) *command.Command
- func Get(id string) *command.Command
- func Register(cmd *command.Command)
- func ToCobra(cmd *command.Command, globalOptions command.Options, parent *cobra.Command) *cobra.Command
- type ByPath
- type CommandRegistry
Constants ¶
View Source
const ContextKeyRuntimeIndex = "x-chinampa-runtime-index" // nolint:gosec
ContextKeyRuntimeIndex is the string key used to store context in a cobra Command.
Variables ¶
View Source
var ErrorHandler = errors.HandleCobraExit
Functions ¶
func CommandList ¶
Types ¶
type CommandRegistry ¶
type CommandRegistry struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.