Enable a hook (–event and –command)
halo enable hook <name> [flags]
| Flag |
Shorthand |
Type |
Default |
Description |
--command |
|
string |
|
command to run |
--dry-run |
|
bool |
false |
print the diff instead of writing |
--event |
|
string |
|
PreToolUse | PostToolUse | SessionStart | Stop | UserPromptSubmit |
--expires |
|
string |
|
toggle expiry YYYY-MM-DD (default: 90 days) |
--for |
|
string |
all |
all (profile change) | <ring> | N% | group:<name> | user:<id> (a toggle) |
--matcher |
|
string |
|
tool matcher, e.g. Edit|Write |
--owner |
|
string |
|
toggle owner (default: first identity.adminGroups entry) |
--policy-dir |
|
string |
|
policy repo directory (default “.”) |
| Flag |
Shorthand |
Type |
Default |
Description |
--output |
|
string |
text |
output format: text|json |
halo enable