| 19 | * Both tree-sitter and regex fallback implementations conform to this. |
| 20 | */ |
| 21 | export interface IParsedCommand { |
| 22 | readonly originalCommand: string |
| 23 | toString(): string |
| 24 | getPipeSegments(): string[] |
| 25 | withoutOutputRedirections(): string |
| 26 | getOutputRedirections(): OutputRedirection[] |
| 27 | /** |
| 28 | * Returns tree-sitter analysis data if available. |
| 29 | * Returns null for the regex fallback implementation. |
| 30 | */ |
| 31 | getTreeSitterAnalysis(): TreeSitterAnalysis | null |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * @deprecated Legacy regex/shell-quote path. Only used when tree-sitter is |
no outgoing calls
no test coverage detected