version

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandTree

func CommandTree() *cli.Command

CommandTree returns the top level version command

func GetVersion

func GetVersion(c *cobra.Command, k8sversion string) (*kuttilib.Version, *kuttilib.Driver, error)

GetVersion gets the version and driver from the command line context, given the specified Kubernetes version string.

func NameValidArgs

func NameValidArgs(c *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

NameValidArgs returns Kubernetes version strings as per Cobra argument validation rules.

func SetDriverFlag

func SetDriverFlag(c *cobra.Command)

SetDriverFlag adds a "--driver" flag to a Cobra command, and sets it up for autocompletion with driver names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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