Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

docs(hook): use concurrent form in multi-key hook examples (#2248)

Maximilian Roosd4c80ca9705f
diff --git a/docs/content/hook.md b/docs/content/hook.md
index 4f305974c..8291290e1 100644
--- a/docs/content/hook.md
+++ b/docs/content/hook.md
@@ -389,14 +389,10 @@ Quick checks before commit, thorough validation before merge:
```toml
[[pre-commit]]
lint = "npm run lint"
-
-[[pre-commit]]
typecheck = "npm run typecheck"
[[pre-merge]]
test = "npm test"
-
-[[pre-merge]]
build = "npm run build"
```
@@ -432,20 +428,14 @@ post-merge = "cargo install --path ."
[[pre-start]]
install = "npm ci"
-
-[[pre-start]]
env = "echo 'PORT={{ branch | hash_port }}' > .env.local"
[[pre-commit]]
format = "cargo fmt -- --check"
-
-[[pre-commit]]
lint = "cargo clippy -- -D warnings"
[[pre-merge]]
test = "cargo test"
-
-[[pre-merge]]
build = "cargo build --release"
[pre-switch]
diff --git a/docs/content/merge.md b/docs/content/merge.md
index 840ef5ac2..c09da1a18 100644
--- a/docs/content/merge.md
+++ b/docs/content/merge.md
@@ -72,8 +72,6 @@ The full workflow: start an agent (one of many) on a task, work elsewhere, retur
```toml
[[pre-merge]]
test = "cargo test"
-
-[[pre-merge]]
lint = "cargo clippy"
```
diff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.md
index c25e9f2ab..1352739d3 100644
--- a/docs/content/tips-patterns.md
+++ b/docs/content/tips-patterns.md
@@ -131,8 +131,6 @@ All gitignored files are copied by default. To limit what gets copied, create `.
```toml
[[pre-merge]]
lint = "uv run ruff check"
-
-[[pre-merge]]
test = "uv run pytest"
```
diff --git a/skills/worktrunk/reference/hook.md b/skills/worktrunk/reference/hook.md
index ffe061d04..e58a4c2eb 100644
--- a/skills/worktrunk/reference/hook.md
+++ b/skills/worktrunk/reference/hook.md
@@ -389,14 +389,10 @@ Quick checks before commit, thorough validation before merge:
```toml
[[pre-commit]]
lint = "npm run lint"
-
-[[pre-commit]]
typecheck = "npm run typecheck"
[[pre-merge]]
test = "npm test"
-
-[[pre-merge]]
build = "npm run build"
```
@@ -432,20 +428,14 @@ post-merge = "cargo install --path ."
[[pre-start]]
install = "npm ci"
-
-[[pre-start]]
env = "echo 'PORT={{ branch | hash_port }}' > .env.local"
[[pre-commit]]
format = "cargo fmt -- --check"
-
-[[pre-commit]]
lint = "cargo clippy -- -D warnings"
[[pre-merge]]
test = "cargo test"
-
-[[pre-merge]]
build = "cargo build --release"
[pre-switch]
diff --git a/skills/worktrunk/reference/merge.md b/skills/worktrunk/reference/merge.md
index af4c3ef43..f2bb1b477 100644
--- a/skills/worktrunk/reference/merge.md
+++ b/skills/worktrunk/reference/merge.md
@@ -68,8 +68,6 @@ The full workflow: start an agent (one of many) on a task, work elsewhere, retur
```toml
[[pre-merge]]
test = "cargo test"
-
-[[pre-merge]]
lint = "cargo clippy"
```
diff --git a/skills/worktrunk/reference/tips-patterns.md b/skills/worktrunk/reference/tips-patterns.md
index 3b7a58ab7..15e31e998 100644
--- a/skills/worktrunk/reference/tips-patterns.md
+++ b/skills/worktrunk/reference/tips-patterns.md
@@ -126,8 +126,6 @@ All gitignored files are copied by default. To limit what gets copied, create `.
```toml
[[pre-merge]]
lint = "uv run ruff check"
-
-[[pre-merge]]
test = "uv run pytest"
```
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index 03f50486b..81c5c7b28 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -1060,8 +1060,6 @@ The full workflow: start an agent (one of many) on a task, work elsewhere, retur
```toml
[[pre-merge]]
test = "cargo test"
-
-[[pre-merge]]
lint = "cargo clippy"
```
@@ -1597,14 +1595,10 @@ Quick checks before commit, thorough validation before merge:
```toml
[[pre-commit]]
lint = "npm run lint"
-
-[[pre-commit]]
typecheck = "npm run typecheck"
[[pre-merge]]
test = "npm test"
-
-[[pre-merge]]
build = "npm run build"
```
@@ -1640,20 +1634,14 @@ post-merge = "cargo install --path ."
[[pre-start]]
install = "npm ci"
-
-[[pre-start]]
env = "echo 'PORT={{ branch | hash_port }}' > .env.local"
[[pre-commit]]
format = "cargo fmt -- --check"
-
-[[pre-commit]]
lint = "cargo clippy -- -D warnings"
[[pre-merge]]
test = "cargo test"
-
-[[pre-merge]]
build = "cargo build --release"
[pre-switch]
diff --git a/tests/snapshots/integration__integration_tests__help__help_md_merge.snap b/tests/snapshots/integration__integration_tests__help__help_md_merge.snap
index 5c412a7e1..a077744c3 100644
--- a/tests/snapshots/integration__integration_tests__help__help_md_merge.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_md_merge.snap
@@ -164,8 +164,6 @@ The full workflow: start an agent (one of many) on a task, work elsewhere, retur
```toml
[[pre-merge]]
test = "cargo test"
-
-[[pre-merge]]
lint = "cargo clippy"
```
diff --git a/tests/snapshots/integration__integration_tests__help__help_merge_long.snap b/tests/snapshots/integration__integration_tests__help__help_merge_long.snap
index c340ad8b1..ef60c37d1 100644
--- a/tests/snapshots/integration__integration_tests__help__help_merge_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_merge_long.snap
@@ -150,8 +150,6 @@ The full workflow: start an agent (one of many) on a task, work elsewhere, retur
  [[pre-merge]]
  test = "cargo test"
- 
-  [[pre-merge]]
  lint = "cargo clippy"
See also