command

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func ResolveSubcommand

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

func Run

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

Types

type Config added in v0.3.0

type Config struct {
	Plain                bool
	ForceColor           bool
	ShowKubecolorVersion bool
	KubectlCmd           string
	StdinOverride        string
	ObjFreshThreshold    time.Duration
	Theme                *config.Theme

	ArgsPassthrough []string
}

func ResolveConfig

func ResolveConfig(inputArgs []string) (*Config, error)

func ResolveConfigViper added in v0.3.0

func ResolveConfigViper(inputArgs []string, v *viper.Viper) (*Config, error)

type KubectlError

type KubectlError struct {
	ExitCode int
}

func (*KubectlError) Error

func (ke *KubectlError) Error() string

type Printers

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