version

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

func NewCmdVersion(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdVersion returns a cobra command for fetching versions

Types

type Options

type Options struct {
	ClientOnly bool

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

Options is a struct to support version command

func NewOptions

func NewOptions(ioStreams genericclioptions.IOStreams) *Options

NewOptions returns initialized Options

func (*Options) AddFlags

func (o *Options) AddFlags(cmd *cobra.Command)

AddFlags add all the flags.

func (*Options) Complete

func (o *Options) Complete(f cmdutil.Factory) error

Complete completes all the required options

func (*Options) Run

func (o *Options) Run() error

Run executes version command

Jump to

Keyboard shortcuts

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