Documentation
¶
Index ¶
- type Context
- func (c *Context) ContainsFlag(flag string) bool
- func (c *Context) Error(err string)
- func (c *Context) GetFlagValue(flag string) string
- func (c *Context) GetIntFlagValue(flag string) int64
- func (c *Context) ShowHelpPage()
- func (c *Context) ValidateFile(flag string) (*os.File, error)
- func (c *Context) ValidateFilePath(path string) (*os.File, error)
- type Executor
- type Executors
- type Shell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func (*Context) ContainsFlag ¶
func (*Context) GetFlagValue ¶
func (*Context) GetIntFlagValue ¶
func (*Context) ShowHelpPage ¶
func (c *Context) ShowHelpPage()
type Executor ¶
type Executor struct {
Name string
Help string
Aliases []string
WithValue bool
Flags *flags.Flags
CountArgs int
SubExecs Executors
Func func(*Context)
}
func (*Executor) AddExecutor ¶
type Executors ¶
func (Executors) GetSuggests ¶
type Shell ¶
func (*Shell) AddExecutor ¶
func (*Shell) ImprovedShell ¶
func (*Shell) RunSingleCommand ¶
Click to show internal directories.
Click to hide internal directories.