Documentation
¶
Index ¶
- type CommandBuilder
- type FlagGetter
- func (f *FlagGetter) GetArgs() []string
- func (f *FlagGetter) GetBool(flag flags.Flag) bool
- func (f *FlagGetter) GetCommand() *cobra.Command
- func (f *FlagGetter) GetInt(flag flags.Flag) int
- func (f *FlagGetter) GetString(flag flags.Flag) string
- func (f *FlagGetter) GetStringArray(flag flags.Flag) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBuilder ¶
type CommandBuilder struct {
Command constants.Command
Flags []flags.Flag
PreRunE func(cmd *cobra.Command, args []string) error
RunE func(fg *FlagGetter) error
}
func (*CommandBuilder) Build ¶
func (b *CommandBuilder) Build() *cobra.Command
type FlagGetter ¶
type FlagGetter struct {
// contains filtered or unexported fields
}
func (*FlagGetter) GetArgs ¶
func (f *FlagGetter) GetArgs() []string
func (*FlagGetter) GetCommand ¶ added in v0.9.0
func (f *FlagGetter) GetCommand() *cobra.Command
func (*FlagGetter) GetStringArray ¶ added in v0.14.0
func (f *FlagGetter) GetStringArray(flag flags.Flag) []string
Click to show internal directories.
Click to hide internal directories.