* Extract just the command name (first word) from a single command string.
(command: string)
| 102 | * Extract just the command name (first word) from a single command string. |
| 103 | */ |
| 104 | function extractBaseCommand(command: string): string { |
| 105 | return command.trim().split(/\s+/)[0] || '' |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Extract the primary command from a complex command line; |
no outgoing calls
no test coverage detected