command

package
v0.0.0-...-1429f03 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BinToValue = map[pb.Bin]string{
		pb.Bin_BIN_CHMOD:   "chmod",
		pb.Bin_BIN_MKDIR:   "mkdir",
		pb.Bin_BIN_MKTEMP:  "mktemp",
		pb.Bin_BIN_MV:      "mv",
		pb.Bin_BIN_RM:      "rm",
		pb.Bin_BIN_TAR:     "tar",
		pb.Bin_BIN_TEE:     "tee",
		pb.Bin_BIN_WGET:    "wget",
		pb.Bin_BIN_KUBEADM: "kubeadm",
		pb.Bin_BIN_CAT:     "cat",
	}
	ValueToBin = make(map[string]pb.Bin, len(BinToValue))
)

Functions

func BinValue

func BinValue(bin pb.Bin) (string, error)

func Display

func Display(c *pb.Command) string

func Parse

func Parse(args []string) (*pb.Command, error)

func ParseBin

func ParseBin(bin string) (pb.Bin, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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