From ff3b414ab1eb15bc381509db0f1f207fb0eb1139 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Fri, 28 Aug 2026 17:33:19 -0700 Subject: [PATCH] docs(hook): fix the --base example in the pre-start upstream snippet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `wt switch --create feature origin/feature` is rejected — `wt switch` takes no positional base, so the example errors with "unexpected argument". The template snippet it illustrates is unaffected. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01NBxMUZo7awheuY85PNXCjE --- docs/src/content/docs/hook.md | 2 +- plugins/worktrunk/skills/worktrunk/reference/hook.md | 2 +- skills/worktrunk/reference/hook.md | 2 +- src/cli/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/content/docs/hook.md b/docs/src/content/docs/hook.md index b295b5eab..003fe77bb 100644 --- a/docs/src/content/docs/hook.md +++ b/docs/src/content/docs/hook.md @@ -169,7 +169,7 @@ Undefined variables error — use conditionals or defaults for optional behavior ```toml [pre-start] -# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature origin/feature) +# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature --base origin/feature) sync = "{% if upstream %}git fetch && git rebase {{ upstream }}{% endif %}" ``` diff --git a/plugins/worktrunk/skills/worktrunk/reference/hook.md b/plugins/worktrunk/skills/worktrunk/reference/hook.md index 39d2391f2..fab7be40c 100644 --- a/plugins/worktrunk/skills/worktrunk/reference/hook.md +++ b/plugins/worktrunk/skills/worktrunk/reference/hook.md @@ -163,7 +163,7 @@ Undefined variables error — use conditionals or defaults for optional behavior ```toml [pre-start] -# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature origin/feature) +# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature --base origin/feature) sync = "{% if upstream %}git fetch && git rebase {{ upstream }}{% endif %}" ``` diff --git a/skills/worktrunk/reference/hook.md b/skills/worktrunk/reference/hook.md index 39d2391f2..fab7be40c 100644 --- a/skills/worktrunk/reference/hook.md +++ b/skills/worktrunk/reference/hook.md @@ -163,7 +163,7 @@ Undefined variables error — use conditionals or defaults for optional behavior ```toml [pre-start] -# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature origin/feature) +# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature --base origin/feature) sync = "{% if upstream %}git fetch && git rebase {{ upstream }}{% endif %}" ``` diff --git a/src/cli/mod.rs b/src/cli/mod.rs index b596d976a..8c231750b 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -1711,7 +1711,7 @@ Undefined variables error — use conditionals or defaults for optional behavior ```toml [pre-start] -# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature origin/feature) +# Rebase onto upstream if tracking a remote branch (e.g., wt switch --create feature --base origin/feature) sync = "{% if upstream %}git fetch && git rebase {{ upstream }}{% endif %}" ```