Skip to content

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

Update example prompts in switch command docs

Maximilian Rooscfae44513606
diff --git a/docs/content/switch.md b/docs/content/switch.md
index ac8474075..e72af8639 100644
--- a/docs/content/switch.md
+++ b/docs/content/switch.md
@@ -109,11 +109,11 @@ Usage: <b><span class=c>wt switch</span></b> <span class=c>[OPTIONS]</span> <spa
Especially useful with shell aliases:
<b>alias wsc=&#39;wt switch --create -x claude&#39;</b>
- <b>wsc feature-branch -- &#39;implement the login flow&#39;</b>
+ <b>wsc feature-branch -- &#39;Fix GH #322&#39;</b>
Then <b>wsc feature-branch</b> creates the worktree and launches Claude Code.
- Arguments after <b>--</b> are passed to the command, so <b>wsc feature --</b>
- &#39;implement login&#39; works.
+ Arguments after <b>--</b> are passed to the command, so <b>wsc feature -- &#39;Fix</b>
+ GH #322&#39; works.
<b><span class=c>-y</span></b>, <b><span class=c>--yes</span></b>
Skip approval prompts
diff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.md
index cd0af0f8f..36f4dc69f 100644
--- a/docs/content/tips-patterns.md
+++ b/docs/content/tips-patterns.md
@@ -14,7 +14,8 @@ Create a worktree and launch Claude in one command:
```bash
alias wsc='wt switch --create --execute=claude'
-wsc new-feature # Creates worktree, runs hooks, launches Claude
+wsc new-feature # Creates worktree, runs hooks, launches Claude
+wsc feature -- 'Fix GH #322' # Pass initial prompt to Claude
```
## Eliminate cold starts
diff --git a/src/cli.rs b/src/cli.rs
index b4c074b85..e64adae18 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -2233,12 +2233,12 @@ wt switch --create fix --base=@ # Branch from current HEAD
///
/// ```sh
/// alias wsc='wt switch --create -x claude'
- /// wsc feature-branch -- 'implement the login flow'
+ /// wsc feature-branch -- 'Fix GH #322'
/// ```
///
/// Then `wsc feature-branch` creates the worktree and launches Claude
/// Code. Arguments after `--` are passed to the command, so
- /// `wsc feature -- 'implement login'` works.
+ /// `wsc feature -- 'Fix GH #322'` works.
#[arg(short = 'x', long)]
execute: Option<String>,
diff --git a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap b/tests/snapshots/integration__integration_tests__help__help_page_switch.snap
index d15bde9a7..2c74952f0 100644
--- a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_page_switch.snap
@@ -119,11 +119,11 @@ Usage: wt switch [OPTIONS] <BRANCH> [--
Especially useful with shell aliases:

alias wsc='wt switch --create -x claude'
- wsc feature-branch -- 'implement the login flow'
+ wsc feature-branch -- 'Fix GH #322'

Then wsc feature-branch creates the worktree and launches Claude Code.
- Arguments after -- are passed to the command, so wsc feature --
- 'implement login' works.
+ Arguments after -- are passed to the command, so wsc feature -- 'Fix
+ GH #322' works.
-y, --yes
Skip approval prompts
diff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
index 06bd2fa9a..8e0595afe 100644
--- a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
@@ -51,10 +51,10 @@ Usage: wt switch [OPTIONS] <BRANCH> [--
Especially useful with shell aliases:
alias wsc='wt switch --create -x claude'
- wsc feature-branch -- 'implement the login flow'
+ wsc feature-branch -- 'Fix GH #322'

- Then wsc feature-branch creates the worktree and launches Claude Code. Arguments after -- are passed to the command, so wsc feature --
- 'implement login' works.
+ Then wsc feature-branch creates the worktree and launches Claude Code. Arguments after -- are passed to the command, so wsc feature -- 'Fix
+ GH #322' works.
-y, --yes
Skip approval prompts