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.mdindex 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.mdindex 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 mainSet 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.rsindex 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 mainSet 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=featureSet 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.rsindex 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.snapindex 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: [1m[36mwt config state[0m [36m[OPTIONS][0m [36m<COMMAND>[0mVerbose output (-v: hooks, templates; -vv: debug report)State is stored in [2m.git/[0m (config entries and log files), separate from configuration files.-Use [2mwt config show[0m to view file-based configuration.[1m[32mKeys[0m@@ -83,7 +82,7 @@ Set the default branch manually:[107m [0m [2m[0m[2m[36m$[0m[2m wt[0m[2m config state default-branch set main[0mSet a marker for current branch:-[107m [0m [2m[0m[2m[36m$[0m[2m wt[0m[2m config state marker set [0m[2m[32m"π§ WIP"[0m[2m[0m+[107m [0m [2m[0m[2m[36m$[0m[2m wt[0m[2m config state marker set π§[0mStore arbitrary data:[107m [0m [2m[0m[2m[36m$[0m[2m wt[0m[2m config state vars set env=staging[0m