Versions in this module Expand all Collapse all v2 v2.1.2 Feb 18, 2021 v2.1.1 Feb 8, 2021 Changes in this version + type Actions interface + Checklist func(options []string, text string, init []int) []int + ClearScreen func() error + Cmds func() []*Cmd + HelpText func() string + MultiChoice func(options []string, text string) int + Print func(val ...interface{}) + Printf func(format string, val ...interface{}) + Println func(val ...interface{}) + ReadLine func() string + ReadLineErr func() (string, error) + ReadLineWithDefault func(string) string + ReadMultiLines func(terminator string) string + ReadMultiLinesFunc func(f func(string) bool) string + ReadPassword func() string + ReadPasswordErr func() (string, error) + SetChecklistOptions func(open, selected string) + SetMultiChoicePrompt func(prompt, spacer string) + SetMultiPrompt func(prompt string) + SetPrompt func(prompt string) + ShowPaged func(text string) error + ShowPagedReader func(r io.Reader) error + ShowPrompt func(show bool) + Stop func() + type Cmd struct + Aliases []string + Completer func(args []string) []string + CompleterWithPrefix func(prefix string, args []string) []string + Func func(c *Context) + Help string + LongHelp string + Name string + func (c *Cmd) AddCmd(cmd *Cmd) + func (c *Cmd) Children() []*Cmd + func (c *Cmd) DeleteCmd(name string) + func (c Cmd) FindCmd(args []string) (*Cmd, []string) + func (c Cmd) HelpText() string + type Context struct + Args []string + Cmd Cmd + RawArgs []string + func (c *Context) Err(err error) + func (c *Context) ProgressBar() ProgressBar + func (c *Context) Set(key string, value interface{}) + func (c Context) Del(key string) + func (c Context) Get(key string) interface{} + func (c Context) Keys() (keys []string) + type ProgressBar interface + Display func(ProgressDisplay) + Final func(string) + Indeterminate func(bool) + Interval func(time.Duration) + Prefix func(string) + Progress func(percent int) + Start func() + Stop func() + Suffix func(string) + type ProgressDisplay interface + Determinate func() [101]string + Indeterminate func() []string + type ProgressDisplayCharSet []string + func (p ProgressDisplayCharSet) Determinate() [101]string + func (p ProgressDisplayCharSet) Indeterminate() []string + type ProgressDisplayFunc func(percent int) string + func (p ProgressDisplayFunc) Determinate() [101]string + func (p ProgressDisplayFunc) Indeterminate() []string + type Shell struct + func New() *Shell + func NewWithConfig(conf *readline.Config) *Shell + func NewWithReadline(rl *readline.Instance) *Shell + func (c *Shell) Set(key string, value interface{}) + func (c Shell) Del(key string) + func (c Shell) Get(key string) interface{} + func (c Shell) Keys() (keys []string) + func (s *Shell) Active() bool + func (s *Shell) AddCmd(cmd *Cmd) + func (s *Shell) AutoHelp(enable bool) + func (s *Shell) Close() + func (s *Shell) CustomCompleter(completer readline.AutoCompleter) + func (s *Shell) DeleteCmd(name string) + func (s *Shell) EOF(f func(c *Context)) + func (s *Shell) IgnoreCase(ignore bool) + func (s *Shell) Interrupt(f func(c *Context, count int, input string)) + func (s *Shell) MultiChoiceActive() bool + func (s *Shell) NotFound(f func(*Context)) + func (s *Shell) Process(args ...string) error + func (s *Shell) ProgressBar() ProgressBar + func (s *Shell) RootCmd() *Cmd + func (s *Shell) Run() + func (s *Shell) SetHistoryPath(path string) + func (s *Shell) SetHomeHistoryPath(path string) + func (s *Shell) SetOut(writer io.Writer) + func (s *Shell) SetPager(pager string, args []string) + func (s *Shell) SetRootCmd(cmd *Cmd) + func (s *Shell) Start() + func (s *Shell) Wait() Other modules containing this package github.com/MarekStancik/ishell