Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "(unknown)"
Version holds the version of the project. This must be set during build time.
Functions ¶
func NewCmdVersion ¶
NewCmdVersion creates a cobra command to print the version.
Types ¶
type CommonOptions ¶
type CommonOptions struct {
LogLevel int
}
CommonOptions represents all common options used in a run command CLI.
func (*CommonOptions) SetCommonFlags ¶
func (co *CommonOptions) SetCommonFlags(cmd *cobra.Command)
SetCommonFlags sets the flags for the common options used in a run command CLI.
Click to show internal directories.
Click to hide internal directories.