Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdVersion ¶
func NewCmdVersion(ctx context.Context, ioStreams genericclioptions.IOStreams, factory cmdutil.Factory) *cobra.Command
NewCmdVersion returns a cobra command for fetching versions
Types ¶
type Options ¶
type Options struct {
// If true, don't try to retrieve the installed version
ClientOnly bool
// If true, only prints the version number.
Short bool
// Output is the target output format for the version string. This may be of
// value "", "json" or "yaml".
Output string
VersionChecker versionchecker.Interface
genericclioptions.IOStreams
}
Options is a struct to support version command
func NewOptions ¶
func NewOptions(ioStreams genericclioptions.IOStreams) *Options
NewOptions returns initialized Options
Click to show internal directories.
Click to hide internal directories.