* Add a default command that runs if none other is found. * @param command An optional command function or object * @return self.
(command?: any)
| 125 | * @return self. |
| 126 | */ |
| 127 | public defaultCommand(command?: any): Builder { |
| 128 | command = command || coreCommandDefault |
| 129 | if (typeof command === 'function') { |
| 130 | command = { run: command } |
| 131 | } |
| 132 | command.name = this.data.brand |
| 133 | this.data.defaultCommand = command |
| 134 | return this |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Add a way to add an arbitrary command when building the CLI. |
no outgoing calls
no test coverage detected