DeleteCmd deletes cmd from subcommands.
(name string)
| 49 | |
| 50 | // DeleteCmd deletes cmd from subcommands. |
| 51 | func (c *Cmd) DeleteCmd(name string) { |
| 52 | delete(c.children, name) |
| 53 | } |
| 54 | |
| 55 | // Children returns the subcommands of c. |
| 56 | func (c *Cmd) Children() []*Cmd { |
no outgoing calls