( config: CommandWithArgsConfig, )
| 150 | * }) |
| 151 | */ |
| 152 | export function defineCommandWithArgs( |
| 153 | config: CommandWithArgsConfig, |
| 154 | ): CommandDefinition { |
| 155 | return { |
| 156 | name: config.name, |
| 157 | aliases: config.aliases ?? [], |
| 158 | acceptsArgs: true, |
| 159 | handler: config.handler, |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | const clearInput = (params: RouterParams) => { |
| 164 | params.setInputValue({ text: '', cursorPosition: 0, lastEditDueToNav: false }) |
no outgoing calls
no test coverage detected