Documentation ¶
Index ¶
- type Command
- func (c *Command) CtrlData() func() []byte
- func (c *Command) Exec(cmd *commander.Command) error
- func (c *Command) FindCommand(cmd string, cmdlist []*commander.Command) (*commander.Command, error)
- func (c *Command) FindCommands(b []byte) ([]*commander.Command, error)
- func (c *Command) FromBytes(input []byte) (*commander.Command, error)
- func (c *Command) FromString(input string) (*commander.Command, error)
- func (c *Command) WriteCommands(cmdlist []*commander.Command, to io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
func (*Command) FindCommand ¶ added in v0.2.2
So for this, we want to parse out a proper cmd - each arg can have spaces if it's wrapped in \" \"
func (*Command) FindCommands ¶ added in v0.2.2
FindCommands within a byte array It returns an error if it encounters malformed input
func (*Command) FromString ¶ added in v0.2.2
FromString returns a partially filled command It will have a Heading type of DefaultGroup
Click to show internal directories.
Click to hide internal directories.