Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / matchShellCommand

Function: matchShellCommand()

ts
function matchShellCommand(command, rules): ShellVerdict;

Defined in: packages/core/src/tools/shell-matcher.ts:236

The strictest-across-segments composition (5.3): deny if ANY segment denies; otherwise ask if ANY segment asks or fails to match an allow pattern; otherwise allow.

Parameters

ParameterType
commandstring
rulesShellPatternRules

Returns

ShellVerdict