Skip to content

Commit 697cd44

Browse files
committed
Add some claude stuff
1 parent 9134abe commit 697cd44

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.claude/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"hooks": {
33
"PostToolUse": [
44
{
5-
"matcher": "Edit|Write",
5+
"matcher": "Edit|Write|MultiEdit",
66
"hooks": [
77
{
88
"type": "command",
9-
"command": "jq -r '.tool_input.file_path // empty' | xargs -I{} gofumpt -w {}"
9+
"command": "jq -r '.tool_input.file_path // empty' | { read -r f; case \"$f\" in *.go) gofumpt -w \"$f\" ;; esac; } 2>/dev/null || true"
1010
}
1111
]
1212
}

CLAUDE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CLAUDE.md
2+
3+
## Build & test
4+
- All Go commands need `GOFLAGS=-mod=vendor` (deps are vendored, including the `jesseduffield/gocui` fork and the Docker SDK).
5+
- Unit tests: `GOFLAGS=-mod=vendor go test ./...`

0 commit comments

Comments
 (0)