Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Updates README documentation for consistent formatting
Maximilian Roos4231501d843c
diff --git a/README.md b/README.mdindex f1178bbc5..9f5d5cff8 100644--- a/README.md+++ b/README.md@@ -416,6 +416,7 @@ Arguments are resolved using **path-first lookup**:3. Otherwise, treat the argument as a branch name**Example**: If `repo.foo/` exists but is on branch `bar`:+- `wt switch foo` switches to `repo.foo/` (the `bar` branch worktree)- `wt switch bar` also works (falls back to branch lookup)@@ -693,6 +694,7 @@ Arguments are resolved to worktrees using **path-first lookup**:3. Otherwise, treat the argument as a branch name**Example**: If `repo.foo/` exists but is on branch `bar`:+- `wt remove foo` removes `repo.foo/` and the `bar` branch- `wt remove bar` also works (falls back to branch lookup)@@ -860,7 +862,7 @@ Order: `+!? ✖⚠≡_ ↻⋈ ↑↓↕ ⇡⇣⇅ ⎇⌫⊠`- `⌫` Prunable worktree (directory missing, can be pruned)- `⊠` Locked worktree (protected from auto-removal)-*Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).*+Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).## JSON Outputdiff --git a/src/cli.rs b/src/cli.rsindex c9f88b97f..fc8b8279a 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -651,7 +651,7 @@ Order: `+!? ✖⚠≡_ ↻⋈ ↑↓↕ ⇡⇣⇅ ⎇⌫⊠`- `⌫` Prunable worktree (directory missing, can be pruned)- `⊠` Locked worktree (protected from auto-removal)-*Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).*+Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).## JSON Output@@ -743,6 +743,7 @@ Arguments are resolved using **path-first lookup**:3. Otherwise, treat the argument as a branch name**Example**: If `repo.foo/` exists but is on branch `bar`:+- `wt switch foo` switches to `repo.foo/` (the `bar` branch worktree)- `wt switch bar` also works (falls back to branch lookup)@@ -885,6 +886,7 @@ Arguments are resolved to worktrees using **path-first lookup**:3. Otherwise, treat the argument as a branch name**Example**: If `repo.foo/` exists but is on branch `bar`:+- `wt remove foo` removes `repo.foo/` and the `bar` branch- `wt remove bar` also works (falls back to branch lookup)diff --git a/tests/snapshots/integration__integration_tests__help__help_list_long.snap b/tests/snapshots/integration__integration_tests__help__help_list_long.snapindex 836a68b63..fc0cb1e53 100644--- a/tests/snapshots/integration__integration_tests__help__help_list_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_list_long.snap@@ -102,7 +102,7 @@ Order: [2m+!? ✖⚠≡_ ↻⋈ ↑↓↕ ⇡⇣⇅ ⎇⌫⊠[0m- [2m⌫[0m Prunable worktree (directory missing, can be pruned)- [2m⊠[0m Locked worktree (protected from auto-removal)-*Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).*+Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).[32mJSON Output[0mdiff --git a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap b/tests/snapshots/integration__integration_tests__help__help_remove_long.snapindex e6a796e2a..0739ad496 100644--- a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap@@ -71,6 +71,7 @@ Arguments are resolved to worktrees using [1mpath-first lookup[0m:3. Otherwise, treat the argument as a branch name[1mExample[0m: If [2mrepo.foo/[0m exists but is on branch [2mbar[0m:+- [2mwt remove foo[0m removes [2mrepo.foo/[0m and the [2mbar[0m branch- [2mwt remove bar[0m also works (falls back to branch lookup)diff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snapindex 28715370b..cff8d333e 100644--- a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap@@ -67,6 +67,7 @@ Arguments are resolved using [1mpath-first lookup[0m:3. Otherwise, treat the argument as a branch name[1mExample[0m: If [2mrepo.foo/[0m exists but is on branch [2mbar[0m:+- [2mwt switch foo[0m switches to [2mrepo.foo/[0m (the [2mbar[0m branch worktree)- [2mwt switch bar[0m also works (falls back to branch lookup)