virtctl

package
v1.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 33 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewVirtctlCommand = NewVirtctlCommandFn
)

Functions

func Execute added in v0.4.0

func Execute() int

func GetProgramName added in v0.35.0

func GetProgramName(binary string) string

GetProgramName returns the command name to display in help texts. If `virtctl` is installed via krew to be used as a kubectl plugin, it's run via a symlink, so the basename then is `kubectl-virt`. In this case we want to accommodate the user by adjusting the help text (usage, examples and the like) by displaying `kubectl virt <command>` instead of `virtctl <command>`. see https://github.com/kubevirt/kubevirt/issues/2356 for more details see also templates.go

func NewVirtctlCommandFn

func NewVirtctlCommandFn() (*cobra.Command, clientcmd.ClientConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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