Runnable reports whether the command can be run; otherwise it is a documentation pseudo-command such as importpath.
()
| 103 | // Runnable reports whether the command can be run; otherwise |
| 104 | // it is a documentation pseudo-command such as importpath. |
| 105 | func (c *Command) Runnable() bool { |
| 106 | return c.Run != nil |
| 107 | } |
| 108 | |
| 109 | var atExitFuncs []func() |
| 110 |