command

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Stdout = colorable.NewColorableStdout()
	Stderr = colorable.NewColorableStderr()
)

Functions

func ResolveSubcommand added in v0.0.6

func ResolveSubcommand(args []string, config *KubecolorConfig) (bool, *kubectl.SubcommandInfo)

func Run

func Run(args []string, version string) error

Types

type KubecolorConfig added in v0.0.6

type KubecolorConfig struct {
	Plain                bool
	DarkBackground       bool
	ForceColor           bool
	ShowKubecolorVersion bool
	KubectlCmd           string
}

func ResolveConfig added in v0.0.6

func ResolveConfig(args []string) ([]string, *KubecolorConfig)

type KubectlError added in v0.0.11

type KubectlError struct {
	ExitCode int
}

func (*KubectlError) Error added in v0.0.11

func (ke *KubectlError) Error() string

type Printers added in v0.0.3

type Printers struct {
	FullColoredPrinter printer.Printer
	ErrorPrinter       printer.Printer
}

Jump to

Keyboard shortcuts

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