(c CommandRunner)
| 122 | } |
| 123 | |
| 124 | func demote(c CommandRunner) bool { |
| 125 | i, ok := c.(Demoter) |
| 126 | return ok && i.Demote() |
| 127 | } |
| 128 | |
| 129 | // RegisterMode adds a mode to the list of modes for the main command. |
| 130 | // It is meant to be called in init() for each subcommand. |