rulvar API reference / @rulvar/core / lexShellCommand
Function: lexShellCommand()
ts
function lexShellCommand(command): ShellSegment[];Defined in: packages/core/src/tools/shell-matcher.ts:35
Lexes a command into segments per the matching algorithm above. Quotes and escapes are honored; nothing is expanded; $(, backticks, <(, >(, and << (outside single quotes) poison their segment.
Parameters
| Parameter | Type |
|---|---|
command | string |