Name is the command name.
()
| 50 | |
| 51 | // Name is the command name. |
| 52 | func (c *ShellCommand) Name() string { |
| 53 | name := c.Use |
| 54 | i := strings.Index(name, " ") |
| 55 | if i >= 0 { |
| 56 | name = name[:i] |
| 57 | } |
| 58 | return name |
| 59 | } |
| 60 | |
| 61 | // Short is the summary for the command |
| 62 | func (c *ShellCommand) Short() string { |