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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user