Documentation ¶
Index ¶
- type Arg
- type Args
- func (a Args) At(v int) string
- func (a Args) Empty() bool
- func (a Args) Has(v string) bool
- func (a Args) HasIndex(v int) bool
- func (a Args) Last() string
- func (a Args) Len() int
- func (a Args) LenGt(v int) bool
- func (a Args) LenGte(v int) bool
- func (a Args) LenIs(v int) bool
- func (a Args) LenLt(v int) bool
- func (a Args) LenLte(v int) bool
- func (a Args) Shift() (string, Args)
- type FlagSet
- type Mode
- type Option
- type Readline
- func (a *Readline) AdditionalArgs() Args
- func (a *Readline) AllFlags() []*pflag.Flag
- func (a *Readline) AllPassThroughFlags() []*pflag.Flag
- func (a *Readline) Args() Args
- func (a *Readline) Cmd() string
- func (a *Readline) FlagSet() *FlagSet
- func (a *Readline) Flags() Args
- func (a *Readline) IsModeAdditional() bool
- func (a *Readline) IsModeDefault() bool
- func (a *Readline) IsModePassThrough() bool
- func (a *Readline) Mode() Mode
- func (a *Readline) Parse(input string) error
- func (a *Readline) ParseFlags() error
- func (a *Readline) ParsePassThroughFlags() error
- func (a *Readline) PassThroughArgs() Args
- func (a *Readline) PassThroughFlagSet() *FlagSet
- func (a *Readline) PassThroughFlags() Args
- func (a *Readline) SetFlags(fs *FlagSet)
- func (a *Readline) SetParsePassThroughFlags(fs *FlagSet)
- func (a *Readline) String() string
- func (a *Readline) VisitedFlags() []*pflag.Flag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Readline ¶
type Readline struct {
// contains filtered or unexported fields
}
func (*Readline) AdditionalArgs ¶
func (*Readline) AllPassThroughFlags ¶
func (*Readline) IsModeAdditional ¶
func (*Readline) IsModeDefault ¶
func (*Readline) IsModePassThrough ¶
func (*Readline) ParseFlags ¶
func (*Readline) ParsePassThroughFlags ¶
func (*Readline) PassThroughArgs ¶
func (*Readline) PassThroughFlagSet ¶
func (*Readline) PassThroughFlags ¶
func (*Readline) SetParsePassThroughFlags ¶
func (*Readline) VisitedFlags ¶
Click to show internal directories.
Click to hide internal directories.