Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteOptions ¶
Types ¶
type ConditionFunction ¶
type ConditionFunction func() bool
func (ConditionFunction) IsTrue ¶
func (f ConditionFunction) IsTrue() bool
type OptionSelector ¶
type OptionSelector func(provider OptionSetProvider) bool
func Always ¶
func Always() OptionSelector
func Never ¶
func Never() OptionSelector
func Not ¶
func Not(s OptionSelector) OptionSelector
type OptionSet ¶
type OptionSet []Options
func (OptionSet) AsOptionSet ¶
func (OptionSet) Get ¶
Get extracts the option for a given target. This might be a
- pointer to a struct implementing the Options interface which will fill the struct with a copy of the options OR
- a pointer to such a pointer which will be filled with the pointer to the actual member of the OptionSet.
func (OptionSet) ProcessOnOptions ¶
func (s OptionSet) ProcessOnOptions(f OptionsProcessor) error
type OptionSetProvider ¶
type OptionSetProvider interface {
AsOptionSet() OptionSet
}
type OptionsProcessor ¶
func CompleteOptionsWithCLIContext ¶
func CompleteOptionsWithCLIContext(ctx clictx.Context) OptionsProcessor
type SimpleOptionCompleter ¶
type SimpleOptionCompleter interface {
Complete() error
}
Click to show internal directories.
Click to hide internal directories.