Skip to content

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

docs: trim `wt config state` help text (#1965)

Maximilian Roose94da8d1e778
diff --git a/docs/content/config.md b/docs/content/config.md
index b02b55185..a46af6f7e 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -562,7 +562,6 @@ Usage: <b><span class=c>wt config show</span></b> <span class=c>[OPTIONS]</span>
Manage internal data and cache.
State is stored in `.git/` (config entries and log files), separate from configuration files.
-Use `wt config show` to view file-based configuration.
### Keys
@@ -582,7 +581,7 @@ Set the default branch manually:
{{ terminal(cmd="wt config state default-branch set main") }}
Set a marker for current branch:
-{{ terminal(cmd="wt config state marker set __WT_QUOT__🚧 WIP__WT_QUOT__") }}
+{{ terminal(cmd="wt config state marker set 🚧") }}
Store arbitrary data:
{{ terminal(cmd="wt config state vars set env=staging") }}
diff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.md
index 21a1b1bf1..d47a8e139 100644
--- a/skills/worktrunk/reference/config.md
+++ b/skills/worktrunk/reference/config.md
@@ -567,7 +567,6 @@ Global Options:
Manage internal data and cache.
State is stored in `.git/` (config entries and log files), separate from configuration files.
-Use `wt config show` to view file-based configuration.
### Keys
@@ -592,7 +591,7 @@ $ wt config state default-branch set main
Set a marker for current branch:
```bash
-$ wt config state marker set "🚧 WIP"
+$ wt config state marker set 🚧
```
Store arbitrary data:
diff --git a/src/cli/config.rs b/src/cli/config.rs
index 113227d17..b2f49305f 100644
--- a/src/cli/config.rs
+++ b/src/cli/config.rs
@@ -425,7 +425,6 @@ $ wt config plugins opencode install
/// Manage internal data and cache
#[command(
after_long_help = r#"State is stored in `.git/` (config entries and log files), separate from configuration files.
-Use `wt config show` to view file-based configuration.
## Keys
@@ -450,7 +449,7 @@ $ wt config state default-branch set main
Set a marker for current branch:
```console
-$ wt config state marker set "🚧 WIP"
+$ wt config state marker set 🚧
```
Store arbitrary data:
@@ -916,7 +915,7 @@ $ wt config state marker get --branch=feature
Set marker for current branch:
```console
-$ wt config state marker set "🚧 WIP"
+$ wt config state marker set 🚧
```
Set marker for a specific branch:
diff --git a/tests/integration_tests/step_prune.rs b/tests/integration_tests/step_prune.rs
index 064850c7c..98178d9a7 100644
--- a/tests/integration_tests/step_prune.rs
+++ b/tests/integration_tests/step_prune.rs
@@ -194,12 +194,9 @@ fn test_prune_removes_integrated_detached(mut repo: TestRepo) {
repo.add_worktree("detached-integrated");
repo.detach_head_in_worktree("detached-integrated");
- assert_cmd_snapshot!(make_snapshot_cmd(
- &repo,
- "step",
- &["prune", "--yes", "--min-age=0s"],
- None
- ));
+ let mut cmd = make_snapshot_cmd(&repo, "step", &["prune", "--yes", "--min-age=0s"], None);
+ cmd.env("RAYON_NUM_THREADS", "1"); // deterministic output order
+ assert_cmd_snapshot!(cmd);
// Worktree was removed (non-current β€” no placeholder)
let parent = repo.root_path().parent().unwrap();
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_state.snap b/tests/snapshots/integration__integration_tests__help__help_config_state.snap
index ea4144401..fb1614ea7 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_state.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_state.snap
@@ -63,7 +63,6 @@ Usage: wt config state [OPTIONS] <COMMAND>
Verbose output (-v: hooks, templates; -vv: debug report)
State is stored in .git/ (config entries and log files), separate from configuration files.
-Use wt config show to view file-based configuration.
Keys
@@ -83,7 +82,7 @@ Set the default branch manually:
  $ wt config state default-branch set main
Set a marker for current branch:
-  $ wt config state marker set "🚧 WIP"
+  $ wt config state marker set 🚧
Store arbitrary data:
  $ wt config state vars set env=staging