Skip to content

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

Update help text with list command and grammar fix

Maximilian Roos3a4dcfbe97e2
diff --git a/src/cli.rs b/src/cli.rs
index 7d114c459..aa3bf77d2 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -135,7 +135,8 @@ Getting started
wt switch --create feature Create worktree and branch
wt switch feature Switch to existing worktree
- wt merge Squash, rebase, and merge to the default branch
+ wt list Show all worktrees
+ wt merge Squash, rebase, and merge to default branch
Run `wt config shell` to set up directory switching.
diff --git a/tests/snapshots/integration__integration_tests__help__help_md_root.snap b/tests/snapshots/integration__integration_tests__help__help_md_root.snap
index f260c1a90..b15bf14fa 100644
--- a/tests/snapshots/integration__integration_tests__help__help_md_root.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_md_root.snap
@@ -7,7 +7,7 @@ info:
env:
CLICOLOR_FORCE: "1"
COLUMNS: "150"
- GIT_CONFIG_GLOBAL: ""
+ GIT_EDITOR: ""
RUST_LOG: warn
SOURCE_DATE_EPOCH: "1735776000"
WORKTRUNK_CONFIG_PATH: /nonexistent/test/config.toml
@@ -50,7 +50,8 @@ Getting started
wt switch --create feature Create worktree and branch
wt switch feature Switch to existing worktree
- wt merge Squash, rebase, and merge to the default branch
+ wt list Show all worktrees
+ wt merge Squash, rebase, and merge to default branch
Run `wt config shell` to set up directory switching.
diff --git a/tests/snapshots/integration__integration_tests__help__help_root_long.snap b/tests/snapshots/integration__integration_tests__help__help_root_long.snap
index ab41b585b..019a158e7 100644
--- a/tests/snapshots/integration__integration_tests__help__help_root_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_root_long.snap
@@ -7,7 +7,7 @@ info:
env:
CLICOLOR_FORCE: "1"
COLUMNS: "150"
- GIT_CONFIG_GLOBAL: ""
+ GIT_EDITOR: ""
RUST_LOG: warn
SOURCE_DATE_EPOCH: "1735776000"
WORKTRUNK_CONFIG_PATH: /nonexistent/test/config.toml
@@ -52,7 +52,8 @@ Getting started
wt switch --create feature Create worktree and branch
wt switch feature Switch to existing worktree
- wt merge Squash, rebase, and merge to the default branch
+ wt list Show all worktrees
+ wt merge Squash, rebase, and merge to default branch
Run wt config shell to set up directory switching.