Documentation
¶
Index ¶
- type AA
- type AAB
- type AC
- type ACB
- type AF
- type AFG
- type AFGB
- type AP
- type AVU
- type Builder
- func (c *Builder) Arg(arg AAB) ACB
- func (c *Builder) Build() (AC, error)
- func (c *Builder) Description(desc string) ACB
- func (c *Builder) DisableHelp() ACB
- func (c *Builder) Examples(examples ...string) ACB
- func (c *Builder) Flag(flag A.FlagBuilder) ACB
- func (c *Builder) FlagGroup(builder AFGB) (this ACB)
- func (c *Builder) GetArgs() []AAB
- func (c *Builder) GetDescription() string
- func (c *Builder) GetFlagGroups() []AFGB
- func (c *Builder) HasDescription() bool
- func (c *Builder) MustBuild() AC
- func (c *Builder) MustParse() A.Command
- func (c *Builder) Parse() (com A.Command, err error)
- func (c *Builder) Unmarshaler(un AVU) ACB
- func (c *Builder) Warnings() []string
- type Command
- func (c *Command) AppendPassthrough(val string)
- func (c *Command) AppendUnmapped(val string)
- func (c *Command) Arguments() []AA
- func (c *Command) FlagGroups() []AFG
- func (c *Command) Name() string
- func (c *Command) Passthroughs() []string
- func (c *Command) String() string
- func (c *Command) UnmappedInput() []string
- func (c *Command) Unmarshaler() AVU
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AAB ¶
type AAB = A.ArgumentBuilder
type AFGB ¶
type AFGB = A.FlagGroupBuilder
type AVU ¶
type AVU = A.ValueUnmarshaler
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Description ¶
func (*Builder) DisableHelp ¶
func (*Builder) GetDescription ¶
func (*Builder) GetFlagGroups ¶
func (*Builder) HasDescription ¶
func (*Builder) Unmarshaler ¶
type Command ¶
type Command struct { trait.Described ValueUnmarshaler argo.ValueUnmarshaler // flag groups Groups []argo.FlagGroup // positional arguments PositionalArgs []argo.Argument // unknown inputs Unmapped []string // passthrough values (values appearing after "--" on the // cli) Passthrough []string }
func (*Command) AppendPassthrough ¶
See argo.Command#AppendPassthrough()
func (*Command) AppendUnmapped ¶
See argo.Command#AppendUnmapped()
func (*Command) Passthroughs ¶
See argo.Command#Passthroughs()
func (*Command) UnmappedInput ¶
See argo.Command#UnmappedInput()
Click to show internal directories.
Click to hide internal directories.