Documentation ¶
Index ¶
- Variables
- func Execute(src Source, name string, args ...string) (err error)
- func ExecuteCommand(src Source, cmd string) (err error)
- func ParseCommand(src string) (args []string, err error)
- type Command
- type CommandMap
- type EchoCmd
- type Executer
- type ExitCmd
- type ShellCmd
- type Source
- type UnknownCommand
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultExecuter = makeDefaultExecuter()
View Source
var ExitErr error = exitErr{}
View Source
var UnfinishedErr = errors.New("Unfinished string")
Functions ¶
func ExecuteCommand ¶
func ParseCommand ¶
Types ¶
type CommandMap ¶
func (CommandMap) Add ¶
func (m CommandMap) Add(name string, cmd Command)
func (CommandMap) Len ¶
func (m CommandMap) Len() int
type Executer ¶
type Executer struct {
// contains filtered or unexported fields
}
func NewExecuter ¶
func NewExecuter() *Executer
type Source ¶
type UnknownCommand ¶
type UnknownCommand struct {
Name string
}
func (*UnknownCommand) Error ¶
func (e *UnknownCommand) Error() string
Click to show internal directories.
Click to hide internal directories.