version

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidOutputTypes = []string{"json", "yaml"}

Functions

func CommandVersion

func CommandVersion(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command

func GetLatestVersion

func GetLatestVersion(ctx context.Context) (string, error)

Types

type CmdOptionsVersion

type CmdOptionsVersion struct {
	IOStreams        *terminal.IOStreams
	CliParams        *settings.Run
	Output           string
	GetLatestVersion GetLatestVersionFunc
}

func (*CmdOptionsVersion) PrintVersion

func (options *CmdOptionsVersion) PrintVersion(ctx context.Context) error

type GetLatestVersionFunc

type GetLatestVersionFunc func(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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