Documentation
¶
Index ¶
- func ClearLine()
- func FormatOutput(v *viper.Viper, object interface{}, quotes []string) ([]byte, error)
- func PrintHelp()
- func UpdateLine(v *viper.Viper, vars map[string]interface{}, quotes []string, line string) error
- type Executor
- type Formatter
- type History
- type Shell
- func (s *Shell) Backspace()
- func (s *Shell) CleanLine() string
- func (s *Shell) ClearLine()
- func (s *Shell) CutLine() error
- func (s *Shell) Exec(line string) (interface{}, error)
- func (s *Shell) GetKey() (rune, keyboard.Key, error)
- func (s *Shell) MoveLeft()
- func (s *Shell) MoveRight()
- func (s *Shell) PasteLine() error
- func (s *Shell) PrintExamples()
- func (s *Shell) PrintFunctions()
- func (s *Shell) PrintHeader()
- func (s *Shell) PrintHelp()
- func (s *Shell) PrintHistory()
- func (s *Shell) ResetLine()
- func (s *Shell) SetLine(str string)
- func (s *Shell) UpdateScreen()
- func (s *Shell) WriteString(str string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatOutput ¶
Types ¶
type Executor ¶
type Executor struct { Vars map[string]interface{} Funcs dfl.FunctionMap }
type Shell ¶
type Shell struct { History *History Executor *Executor Formatter *Formatter Line string Column int }
func (*Shell) PrintExamples ¶
func (s *Shell) PrintExamples()
func (*Shell) PrintFunctions ¶
func (s *Shell) PrintFunctions()
func (*Shell) PrintHeader ¶
func (s *Shell) PrintHeader()
func (*Shell) PrintHistory ¶
func (s *Shell) PrintHistory()
func (*Shell) UpdateScreen ¶
func (s *Shell) UpdateScreen()
func (*Shell) WriteString ¶
Click to show internal directories.
Click to hide internal directories.