Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner)

Update the NewCommand function

Types

type CLIVersionInfo

type CLIVersionInfo struct {
	Release string `json:"release"`
	Version string `json:"version"`
	Bicep   string `json:"bicep"`
	Commit  string `json:"commit"`
}

type CombinedVersionInfo added in v0.55.0

type CombinedVersionInfo struct {
	CLI          CLIVersionInfo          `json:"cli"`
	ControlPlane ControlPlaneVersionInfo `json:"controlPlane"`
}

type ControlPlaneVersionInfo

type ControlPlaneVersionInfo struct {
	Version string `json:"version"`
	Status  string `json:"status"`
}

type Runner

type Runner struct {
	Helm        helm.Interface
	Output      output.Interface
	KubeContext string
	Format      string
	CLIOnly     bool
}

Runner is the Runner implementation for the version command

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new Runner instance

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run executes the version command

func (*Runner) Validate

func (r *Runner) Validate(cmd *cobra.Command, args []string) error

Validate validates the command arguments

Jump to

Keyboard shortcuts

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