Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CLIVersion = "dev"
Functions ¶
Types ¶
type VersionFunc ¶
type VersionFunc func(*VersionSubCommand) error
type VersionInfo ¶
type VersionInfo struct { CLIVersion string `json:"cliVersion"` APIVersions []string `json:"apiVersions"` }
func (*VersionInfo) Display ¶
func (v *VersionInfo) Display() error
Display will parse and print the information stored on the VersionInfo object.
type VersionSubCommand ¶
type VersionSubCommand struct { *cobra.Command // options Name string Description string SubCommandOf *cobra.Command VersionFunc VersionFunc }
func NewBaseVersionSubCommand ¶
func NewBaseVersionSubCommand(parentCommand *cobra.Command) *VersionSubCommand
NewBaseVersionSubCommand returns a subcommand that is meant to belong to a parent subcommand but have subcommands itself.
func (*VersionSubCommand) Setup ¶
func (v *VersionSubCommand) Setup()
Setup sets up this command to be used as a command.
Click to show internal directories.
Click to hide internal directories.