Add some claude stuff

This commit is contained in:
Jesse Duffield 2026-04-19 12:16:43 +10:00
parent 9134abeefd
commit 697cd441aa
2 changed files with 7 additions and 2 deletions

View file

@ -2,11 +2,11 @@
"hooks": { "hooks": {
"PostToolUse": [ "PostToolUse": [
{ {
"matcher": "Edit|Write", "matcher": "Edit|Write|MultiEdit",
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "jq -r '.tool_input.file_path // empty' | xargs -I{} gofumpt -w {}" "command": "jq -r '.tool_input.file_path // empty' | { read -r f; case \"$f\" in *.go) gofumpt -w \"$f\" ;; esac; } 2>/dev/null || true"
} }
] ]
} }

5
CLAUDE.md Normal file
View file

@ -0,0 +1,5 @@
# CLAUDE.md
## Build & test
- All Go commands need `GOFLAGS=-mod=vendor` (deps are vendored, including the `jesseduffield/gocui` fork and the Docker SDK).
- Unit tests: `GOFLAGS=-mod=vendor go test ./...`