Documentation ¶
Index ¶
- Constants
- Variables
- func AddProfilingFlags(flags *pflag.FlagSet)
- func CheckErr(err error)
- func DefaultSubCommandRun(out io.Writer) func(c *cobra.Command, args []string)
- func FlushProfiling() error
- func InitProfiling() error
- func RequireNoArguments(c *cobra.Command, args []string)
- func TableWriterDefaultConfig(table *tablewriter.Table) *tablewriter.Table
- func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error
- type CommandGroup
- type CommandGroups
- type Factory
- type MatchVersionFlags
Constants ¶
View Source
const (
DefaultErrorExitCode = 1
)
Variables ¶
View Source
var ErrExit = fmt.Errorf("exit")
Functions ¶
func AddProfilingFlags ¶
func DefaultSubCommandRun ¶
func FlushProfiling ¶
func FlushProfiling() error
func InitProfiling ¶
func InitProfiling() error
func RequireNoArguments ¶
func TableWriterDefaultConfig ¶
func TableWriterDefaultConfig(table *tablewriter.Table) *tablewriter.Table
Types ¶
type CommandGroup ¶
type CommandGroups ¶
type CommandGroups []CommandGroup
func (CommandGroups) AddTo ¶
func (g CommandGroups) AddTo(c *cobra.Command)
type Factory ¶
type Factory interface { clioptions.RESTClientGetter RESTClient() (*rest.RESTClient, error) }
func NewFactory ¶
func NewFactory(clientGetter clioptions.RESTClientGetter) Factory
type MatchVersionFlags ¶
type MatchVersionFlags struct { Delegate clioptions.RESTClientGetter RequireMatchedServerVersion bool // contains filtered or unexported fields }
func NewMatchVersionFlags ¶
func NewMatchVersionFlags(delegate clioptions.RESTClientGetter) *MatchVersionFlags
func (*MatchVersionFlags) AddFlags ¶
func (f *MatchVersionFlags) AddFlags(flags *pflag.FlagSet)
func (*MatchVersionFlags) ToRESTConfig ¶
func (f *MatchVersionFlags) ToRESTConfig() (*rest.Config, error)
func (*MatchVersionFlags) ToRawSKTConfigLoader ¶
func (f *MatchVersionFlags) ToRawSKTConfigLoader() client.ClientConfig
Click to show internal directories.
Click to hide internal directories.