Documentation ¶
Index ¶
- Variables
- func NewVersionCmd() *cobra.Command
- type CommonOptions
- func (options *CommonOptions) AddCommonFlags(cmd *cobra.Command)
- func (options *CommonOptions) GetContext() (context.Context, func())
- func (options *CommonOptions) GetFilter() *string
- func (options *CommonOptions) Printf(format string, args ...interface{})
- func (options *CommonOptions) Println(s interface{})
- func (options *CommonOptions) TimeoutContext() (context.Context, context.CancelFunc)
- type OptionsProvider
- type Printer
Constants ¶
This section is empty.
Variables ¶
View Source
var CliIdentity string
Functions ¶
func NewVersionCmd ¶ added in v0.34.3
Types ¶
type CommonOptions ¶
type CommonOptions struct { Out io.Writer Err io.Writer Cmd *cobra.Command Args []string BatchMode bool Verbose bool Staging bool ConfigIdentity string Timeout int Identity string }
CommonOptions contains common options and helper methods
func (*CommonOptions) AddCommonFlags ¶
func (options *CommonOptions) AddCommonFlags(cmd *cobra.Command)
func (*CommonOptions) GetContext ¶
func (options *CommonOptions) GetContext() (context.Context, func())
func (*CommonOptions) GetFilter ¶
func (options *CommonOptions) GetFilter() *string
func (*CommonOptions) Printf ¶
func (options *CommonOptions) Printf(format string, args ...interface{})
func (*CommonOptions) Println ¶
func (options *CommonOptions) Println(s interface{})
func (*CommonOptions) TimeoutContext ¶
func (options *CommonOptions) TimeoutContext() (context.Context, context.CancelFunc)
type OptionsProvider ¶
type OptionsProvider func() CommonOptions
func NewOptionsProvider ¶
func NewOptionsProvider(out, err io.Writer) OptionsProvider
Click to show internal directories.
Click to hide internal directories.