Documentation ¶
Index ¶
- type Argv
- type Array
- type Definition
- func (d *Definition) Argument(pos int) (variable.Variable, error)
- func (d *Definition) Arguments() []string
- func (d *Definition) Option(name string) (variable.Variable, error)
- func (d *Definition) Options() []string
- func (d *Definition) SetArgument(name, description string, opts ...variable.Option) *Definition
- func (d *Definition) SetArguments(args ...variable.Variable) *Definition
- func (d *Definition) SetOption(name, description string, opts ...variable.Option) *Definition
- func (d *Definition) SetOptions(opts ...variable.Variable) *Definition
- func (d *Definition) ShortOption(short string) (variable.Variable, error)
- type Input
- type Map
- func (m *Map) AppendArgument(arg variable.Variable, val string) error
- func (m *Map) AppendOption(opt variable.Variable, val string) error
- func (m *Map) Argument(_ context.Context, name string) value.Value
- func (m *Map) Bind(_ context.Context, _ *Definition) error
- func (m *Map) HasArgument(name string) bool
- func (m *Map) HasOption(name string) bool
- func (m *Map) LenArguments() int
- func (m *Map) Option(_ context.Context, name string) value.Value
- func (m *Map) SetArgument(name string, val interface{})
- func (m *Map) SetOption(name string, val interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func NewDefinition ¶
func NewDefinition() *Definition
func (*Definition) Arguments ¶
func (d *Definition) Arguments() []string
func (*Definition) Options ¶
func (d *Definition) Options() []string
func (*Definition) SetArgument ¶
func (d *Definition) SetArgument(name, description string, opts ...variable.Option) *Definition
func (*Definition) SetArguments ¶
func (d *Definition) SetArguments(args ...variable.Variable) *Definition
func (*Definition) SetOption ¶
func (d *Definition) SetOption(name, description string, opts ...variable.Option) *Definition
func (*Definition) SetOptions ¶
func (d *Definition) SetOptions(opts ...variable.Variable) *Definition
func (*Definition) ShortOption ¶
func (d *Definition) ShortOption(short string) (variable.Variable, error)
type Input ¶
Click to show internal directories.
Click to hide internal directories.