| 8 | * the prefix color of a command brighter, or maybe even prefixing each command with `time(1)`. |
| 9 | */ |
| 10 | export interface CommandParser { |
| 11 | /** |
| 12 | * Parses `commandInfo` and returns one or more `CommandInfo`s. |
| 13 | * |
| 14 | * Returning multiple `CommandInfo` is used when there are multiple possibilities of commands to |
| 15 | * run given the original input. |
| 16 | * An example of this is when the command contains a wildcard and it must be expanded into all |
| 17 | * viable options so that the consumer can decide which ones to run. |
| 18 | */ |
| 19 | parse: (commandInfo: CommandInfo) => CommandInfo | CommandInfo[]; |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…