virtctl

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 29 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.4.0

func Execute()

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 NewVirtctlCommand added in v0.4.0

func NewVirtctlCommand() (*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