Documentation ¶
Index ¶
- type Arg
- type Args
- func (a Args) At(v int) string
- func (a Args) Empty() bool
- func (a Args) From(start int) Args
- func (a Args) Has(v string) bool
- func (a Args) HasIndex(v int) bool
- func (a Args) IndexOf(v string) int
- 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)
- func (a Args) Slice(start, end int) Args
- func (a Args) Splice(start, num int) Args
- func (a Args) To(end int) Args
- type FlagSet
- type FlagSets
- func (s *FlagSets) All() *FlagSet
- func (s *FlagSets) Default() *FlagSet
- func (s *FlagSets) Get(name string) *FlagSet
- func (s *FlagSets) Internal() *FlagSet
- func (s *FlagSets) Parse(arguments []string) error
- func (s *FlagSets) ParseAll(arguments []string, fn func(flag *pflag.Flag, value string) error) error
- func (s *FlagSets) Visit(fn func(*pflag.Flag)) Flags
- func (s *FlagSets) VisitAll(fn func(*pflag.Flag)) Flags
- func (s *FlagSets) Visited() Flags
- type Flags
- type Mode
- type Option
- type Readline
- func (a *Readline) AdditionalArgs() Args
- func (a *Readline) AdditionalFlags() Args
- func (a *Readline) AllFlags() []*pflag.Flag
- func (a *Readline) Args() Args
- func (a *Readline) Cmd() string
- func (a *Readline) FlagSets() *FlagSets
- func (a *Readline) Flags() Args
- func (a *Readline) IsModeAdditional() bool
- func (a *Readline) IsModeDefault() bool
- func (a *Readline) Mode() Mode
- func (a *Readline) Parse(input string) error
- func (a *Readline) ParseFlagSets() error
- func (a *Readline) SetFlagSets(fs *FlagSets)
- func (a *Readline) String() string
- func (a *Readline) VisitedFlags() Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagSets ¶ added in v0.4.0
type FlagSets struct {
// contains filtered or unexported fields
}
func NewFlagSets ¶ added in v0.4.0
func NewFlagSets() *FlagSets
type Readline ¶
type Readline struct {
// contains filtered or unexported fields
}
func (*Readline) AdditionalArgs ¶
func (*Readline) AdditionalFlags ¶ added in v0.4.0
func (*Readline) IsModeAdditional ¶
func (*Readline) IsModeDefault ¶
func (*Readline) ParseFlagSets ¶ added in v0.4.0
func (*Readline) SetFlagSets ¶ added in v0.4.0
func (*Readline) VisitedFlags ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.