Documentation
¶
Index ¶
- func NewCliCommand(ctx clictx.Context, mod ...func(clictx.Context, *cobra.Command)) *cobra.Command
- func NewCliCommandForArgs(ctx clictx.Context, args []string, mod ...func(clictx.Context, *cobra.Command)) (*cobra.Command, error)
- func NewVersionCommand(ctx clictx.Context) *cobra.Command
- type CLIOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCliCommand ¶
func NewCliCommandForArgs ¶
Types ¶
type CLIOptions ¶
type CLIOptions struct {
Completed bool
Config string
Credentials []string
Context clictx.Context
Settings []string
Verbose bool
LogOpts logopts.Options
Version bool
}
func Prepare ¶
Prepare pre-prepares CLI options by evaluation the main options and providing an appropriately configured cli context.
func (*CLIOptions) AddFlags ¶
func (o *CLIOptions) AddFlags(fs *pflag.FlagSet)
func (*CLIOptions) Close ¶
func (o *CLIOptions) Close() error
func (*CLIOptions) Complete ¶
func (o *CLIOptions) Complete() error
Click to show internal directories.
Click to hide internal directories.