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.mdindex 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> <spaEspecially useful with shell aliases:<b>alias wsc='wt switch --create -x claude'</b>- <b>wsc feature-branch -- 'implement the login flow'</b>+ <b>wsc feature-branch -- 'Fix GH #322'</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>- 'implement login' works.+ Arguments after <b>--</b> are passed to the command, so <b>wsc feature -- 'Fix</b>+ GH #322' works.<b><span class=c>-y</span></b>, <b><span class=c>--yes</span></b>Skip approval promptsdiff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.mdindex 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:```bashalias 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 startsdiff --git a/src/cli.rs b/src/cli.rsindex 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.snapindex 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: [1m[36mwt switch[0m [36m[OPTIONS][0m [36m<BRANCH>[0m [1m[36m[--Especially useful with shell aliases:[0m[0m[1m[1malias wsc='wt switch --create -x claude'[0m- [1mwsc feature-branch -- 'implement the login flow'[0m+ [1mwsc feature-branch -- 'Fix GH #322'[0m[0m[0mThen [1mwsc feature-branch[0m creates the worktree and launches Claude Code.- Arguments after [1m--[0m are passed to the command, so [1mwsc feature --- 'implement login'[0m works.[0m+ Arguments after [1m--[0m are passed to the command, so [1mwsc feature -- 'Fix+ GH #322'[0m works.[0m[1m[36m-y[0m, [1m[36m--yes[0mSkip approval promptsdiff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snapindex 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: [1m[36mwt switch[0m [36m[OPTIONS][0m [36m<BRANCH>[0m [1m[36m[--Especially useful with shell aliases:[1m[1malias wsc='wt switch --create -x claude'- [1mwsc feature-branch -- 'implement the login flow'+ [1mwsc feature-branch -- 'Fix GH #322'[0m- Then [1mwsc feature-branch[0m creates the worktree and launches Claude Code. Arguments after [1m--[0m are passed to the command, so [1mwsc feature --- 'implement login'[0m works.+ Then [1mwsc feature-branch[0m creates the worktree and launches Claude Code. Arguments after [1m--[0m are passed to the command, so [1mwsc feature -- 'Fix+ GH #322'[0m works.[1m[36m-y[0m, [1m[36m--yesSkip approval prompts