config

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentContext added in v1.0.14

func GetCurrentContext(contextOpt string, configDir string, hosts []string) string

GetCurrentContext get current context based on opts, env vars

Types

type ConfigFlags

type ConfigFlags struct {
	Config string
}

ConfigFlags are the global CLI flags nolint stutter

func (*ConfigFlags) AddConfigFlags

func (c *ConfigFlags) AddConfigFlags(flags *pflag.FlagSet)

AddConfigFlags adds persistent (global) flags

Jump to

Keyboard shortcuts

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