Skip to content

gate:conditional

← Back to CLI Commands

Manage conditional_commands gate entries (add, remove, edit, list)

pnpm gate:conditional

Options:

FlagDescriptionRequired
--addAdd a new conditional commandNo
--removeRemove a conditional command by nameNo
--editEdit an existing conditional commandNo
--listList all conditional commandsNo
--name <name>Rule name (required for —add, —remove, —edit)No
--trigger <glob>Trigger glob pattern (repeatable, required for —add)No
--command <cmd>Shell command to run (required for —add)No
--severity <level>Severity: warn, error, off (default: error)No
--guidance <text>Actionable guidance shown on rule failureNo
--guidance-ref <path>File path whose content is appended to violation messagesNo
--jsonOutput —list as JSON for machine consumptionNo
--json-value’[{“trigger_patterns”:[“src/**”],“command”:”…”}]’No

← Back to CLI Commands