gate:conditional
gate:conditional
Section titled “gate:conditional”Manage conditional_commands gate entries (add, remove, edit, list)
Options:
| Flag | Description | Required |
|---|---|---|
--add | Add a new conditional command | No |
--remove | Remove a conditional command by name | No |
--edit | Edit an existing conditional command | No |
--list | List all conditional commands | No |
--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 failure | No |
--guidance-ref <path> | File path whose content is appended to violation messages | No |
--json | Output —list as JSON for machine consumption | No |
--json-value | ’[{“trigger_patterns”:[“src/**”],“command”:”…”}]’ | No |