Versions in this module Expand all Collapse all v0 v0.0.1 Oct 1, 2021 Changes in this version + type Context struct + Args []string + Exec *Executor + Flags *flags.Flags + 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 struct + Aliases []string + CountArgs int + Flags *flags.Flags + Func func(*Context) + Help string + Name string + SubExecs Executors + WithValue bool + func (e *Executor) AddExecutor(exec *Executor) + func (e *Executor) Execute(ctx *Context) + func (e *Executor) HelpPage(level int) string + type Executors map[string]*Executor + func (e Executors) GetSuggests(commands string) []prompt.Suggest + type Shell struct + Active bool + Execs Executors + Prefix string + func NewShell() *Shell + func (s *Shell) AddExecutor(exec *Executor) + func (s *Shell) Error(msg string) + func (s *Shell) GetExecutor(name string) (*Executor, bool) + func (s *Shell) ImprovedShell(prefix string) + func (s *Shell) OldShell(prefix string) + func (s *Shell) Run() + func (s *Shell) RunSingleCommand(in string)