* Get the semantic interpretation for a command
(command: string)
| 92 | * Get the semantic interpretation for a command |
| 93 | */ |
| 94 | function getCommandSemantic(command: string): CommandSemantic { |
| 95 | // Extract the base command (first word, handling pipes) |
| 96 | const baseCommand = heuristicallyExtractBaseCommand(command) |
| 97 | const semantic = COMMAND_SEMANTICS.get(baseCommand) |
| 98 | return semantic !== undefined ? semantic : DEFAULT_SEMANTIC |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Extract just the command name (first word) from a single command string. |
no test coverage detected