version

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientVersion

func ClientVersion() *version.Info

func Command

Command returns a cobra command for fetching versions

func ServerVersion

func ServerVersion() *version.Info

Types

type Options

type Options struct {
	ClientOnly bool
	Output     string
	IOStreams  *genericiooptions.IOStreams
}

Options is a struct to support version command

func (*Options) PreRun

func (o *Options) PreRun(_ *cobra.Command, _ []string) error

PreRun completes all the required options

func (*Options) Run

func (o *Options) Run(_ *cobra.Command, _ []string) error

Run executes version command

Jump to

Keyboard shortcuts

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