Documentation ¶
Index ¶
- type Cmd
- func (c *Cmd) AddSubCmd(cmd *Cmd)
- func (fs *Cmd) BoolFlag(p *bool, name string, value bool, usage string)
- func (fs *Cmd) DurationFlag(p *time.Duration, name string, value time.Duration, usage string)
- func (fs *Cmd) Float64Flag(p *float64, name string, value float64, usage string)
- func (fs *Cmd) Func(name, usage string, fn func(string) error)
- func (fs *Cmd) Int64Flag(p *int64, name string, value int64, usage string)
- func (fs *Cmd) IntFlag(p *int, name string, value int, usage string)
- func (fs *Cmd) StringFlag(p *string, name, value, usage string)
- func (fs *Cmd) Uint64Flag(p *uint64, name string, value uint64, usage string)
- func (fs *Cmd) UintFlag(p *uint, name string, value uint, usage string)
- func (fs *Cmd) Var(value flag.Value, name, usage string)
- type CmdLine
- func (c *CmdLine) AddCmd(cmd *Cmd)
- func (fs *CmdLine) BoolFlag(p *bool, name string, value bool, usage string)
- func (fs *CmdLine) DurationFlag(p *time.Duration, name string, value time.Duration, usage string)
- func (c *CmdLine) Execute(args []string) error
- func (fs *CmdLine) Float64Flag(p *float64, name string, value float64, usage string)
- func (fs *CmdLine) Func(name, usage string, fn func(string) error)
- func (fs *CmdLine) Int64Flag(p *int64, name string, value int64, usage string)
- func (fs *CmdLine) IntFlag(p *int, name string, value int, usage string)
- func (fs *CmdLine) StringFlag(p *string, name, value, usage string)
- func (fs *CmdLine) Uint64Flag(p *uint64, name string, value uint64, usage string)
- func (fs *CmdLine) UintFlag(p *uint, name string, value uint, usage string)
- func (fs *CmdLine) Var(value flag.Value, name, usage string)
- type CmdOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) DurationFlag ¶
func (*Cmd) Float64Flag ¶
func (*Cmd) StringFlag ¶
func (*Cmd) Uint64Flag ¶
type CmdLine ¶
type CmdLine struct {
// contains filtered or unexported fields
}
func New ¶
func New(app *application.Application) *CmdLine
func (*CmdLine) DurationFlag ¶
func (*CmdLine) Float64Flag ¶
func (*CmdLine) StringFlag ¶
func (*CmdLine) Uint64Flag ¶
Click to show internal directories.
Click to hide internal directories.