Documentation
¶
Overview ¶
Package version provides the subcommand for printing the tool version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates a cobra.Command instance for the version command.
Types ¶
type Command ¶
type Command struct {
// Command is the version cobra.Command instance
Command *cobra.Command
// Version is the application version string
Version string
}
Command encapsulates the version cobra command with its version string.
func NewVersionCommand ¶
NewVersionCommand creates a Command for displaying the application version.
Click to show internal directories.
Click to hide internal directories.