HasExample determines if the command has example.
()
| 1589 | |
| 1590 | // HasExample determines if the command has example. |
| 1591 | func (c *Command) HasExample() bool { |
| 1592 | return len(c.Example) > 0 |
| 1593 | } |
| 1594 | |
| 1595 | // Runnable determines if the command is itself runnable. |
| 1596 | func (c *Command) Runnable() bool { |