Documentation ¶
Index ¶
- type Action
- type Builder
- func (b *Builder[T]) Action(action Action[T]) (builder *Builder[T])
- func (b *Builder[T]) Addable() (builder *Builder[T])
- func (b *Builder[T]) Aliases(aliases ...string) (builder *Builder[T])
- func (b *Builder[T]) Build() *Default[T]
- func (b *Builder[T]) Default(value T) (builder *Builder[T])
- func (b *Builder[T]) Environment(environment ...string) (builder *Builder[T])
- func (b *Builder[T]) Hidden() (builder *Builder[T])
- func (b *Builder[T]) Required() (builder *Builder[T])
- func (b *Builder[T]) Text(text string) (builder *Builder[T])
- func (b *Builder[T]) Usage(usage string) (builder *Builder[T])
- type Default
- func (d *Default[T]) Aliases() []string
- func (d *Default[T]) Default() any
- func (d *Default[T]) Flag() (flag app.Flag)
- func (d *Default[T]) Hidden() bool
- func (d *Default[T]) Name() string
- func (d *Default[T]) Required() bool
- func (d *Default[T]) Target() any
- func (d *Default[T]) Text() string
- func (d *Default[T]) Usage() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶ added in v0.3.7
type Action[T constraint.Argument] func(ctx *runtime.Context, value T) error
type Builder ¶
type Builder[T constraint.Argument] struct { // contains filtered or unexported fields }
func (*Builder[T]) Environment ¶
type Default ¶
type Default[T constraint.Argument] struct { // contains filtered or unexported fields }
func NewDefault ¶
func NewDefault[T constraint.Argument](name string, target *T) *Default[T]
Click to show internal directories.
Click to hide internal directories.