Documentation
¶
Index ¶
- type Args
- type Context
- func (c *Context) At(index int) string
- func (c *Context) Bool(name string) (value bool)
- func (c *Context) Has(name string) (has bool)
- func (c *Context) Int(name string) (value int)
- func (c *Context) IntAt(index int) int
- func (c *Context) Len() int
- func (c *Context) String(name string) (value string)
- func (c *Context) StringAt(index int) string
- func (c *Context) Subcommands() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Parsed context struct
func NewContext ¶
func NewContext(commands []string, options map[string]interface{}, defaults map[string]interface{}) *Context
Instantiate context pointer
Click to show internal directories.
Click to hide internal directories.