mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Plumb the CLI printer through command dispatch, replace direct stdout and stderr writes with printer helpers, preserve important stdout in quiet mode, and update the Claude Rust formatting hook to use cargo +nightly fmt.
15 lines
311 B
JSON
15 lines
311 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "FILE=$(jq -r '.tool_input.file_path') && case \"$FILE\" in *.rs) cargo +nightly fmt -- \"$FILE\" ;; esac"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|