feat: improve hook CLI interface and reduce timeout

- Replace -s project flag with cleaner --project boolean flag
- Reduce hook timeout from 30s to 5s for better responsiveness
- Update README with new syntax
This commit is contained in:
carraes
2025-07-09 06:47:15 -03:00
parent c3e401a19e
commit 47d2c0ba43
5 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -126,7 +126,7 @@ func CreateShushHookEntry() HookEntry {
return HookEntry{
Type: "command",
Command: "shush --changes-only",
Timeout: 30,
Timeout: 5,
}
}
@@ -209,7 +209,7 @@ func AddShushHook(settings *ClaudeSettings) error {
shushHook := map[string]interface{}{
"type": "command",
"command": "shush --changes-only",
"timeout": 30,
"timeout": 5,
}
if postToolUseData, exists := hooksMap["PostToolUse"]; exists {