Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdVersion ¶
func NewCmdVersion(f util.Factory, o *VersionOptions) *cobra.Command
NewCmdVersion returns a new version command.
Types ¶
type VersionOptions ¶
type VersionOptions struct { base.Options // Short indicates if just the version number should be printed Short bool }
VersionOptions is a struct to support version command.
func NewVersionOptions ¶
func NewVersionOptions(ioStreams util.IOStreams) *VersionOptions
NewVersionOptions returns initialized VersionOptions.
func (*VersionOptions) AddFlags ¶
func (o *VersionOptions) AddFlags(flags *pflag.FlagSet)
AddFlags adds flags to adjust the output to a cobra command.
Click to show internal directories.
Click to hide internal directories.