version

package
v0.0.0-...-a6f5042 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL