Skip to content

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

refactor: Rename `wt beta commit` to `wt step commit`

Maximilian Roos3b31979adca5
diff --git a/dev/config.example.toml b/dev/config.example.toml
index 0b5f145af..a89ce56d5 100644
--- a/dev/config.example.toml
+++ b/dev/config.example.toml
@@ -37,7 +37,7 @@ full = false # Show CI, conflicts, diffs by default
branches = false # Include branches without worktrees by default
remotes = false # Include remote branches by default
-# Commit Defaults (shared by `wt beta commit`, `wt beta squash`, and `wt merge`)
+# Commit Defaults (shared by `wt step commit`, `wt step squash`, and `wt merge`)
[commit]
stage = "all" # What to stage: "all", "tracked", or "none"
diff --git a/src/config/user.rs b/src/config/user.rs
index dc80484f3..b7d093d0d 100644
--- a/src/config/user.rs
+++ b/src/config/user.rs
@@ -110,7 +110,7 @@ pub struct WorktrunkConfig {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub list: Option<ListConfig>,
- /// Configuration for the `wt beta commit` command (also used by merge)
+ /// Configuration for the `wt step commit` command (also used by merge)
#[serde(default, skip_serializing_if = "Option::is_none")]
pub commit: Option<CommitConfig>,
@@ -204,7 +204,7 @@ pub struct ListConfig {
pub remotes: Option<bool>,
}
-/// Configuration for the `wt beta commit` command
+/// Configuration for the `wt step commit` command
///
/// Also used by `wt merge` for shared settings like `stage`.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Default)]
diff --git a/tests/integration_tests/list_column_alignment.rs b/tests/integration_tests/list_column_alignment.rs
index 11c3566a5..ff015281f 100644
--- a/tests/integration_tests/list_column_alignment.rs
+++ b/tests/integration_tests/list_column_alignment.rs
@@ -34,8 +34,7 @@ fn test_status_column_alignment_with_header() {
let settings = setup_snapshot_settings(&repo);
settings.bind(|| {
- let mut cmd = make_snapshot_cmd(&repo, "beta", &[], None);
- cmd.arg("list");
+ let mut cmd = make_snapshot_cmd(&repo, "list", &[], None);
assert_cmd_snapshot!("status_column_alignment_check", cmd);
});
}
@@ -87,8 +86,7 @@ fn test_status_column_width_consistency() {
let settings = setup_snapshot_settings(&repo);
settings.bind(|| {
- let mut cmd = make_snapshot_cmd(&repo, "beta", &[], None);
- cmd.arg("list");
+ let mut cmd = make_snapshot_cmd(&repo, "list", &[], None);
assert_cmd_snapshot!("status_column_width_consistency", cmd);
});
}
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_create.snap b/tests/snapshots/integration__integration_tests__help__help_config_create.snap
index 4e10ca14a..76427d5ec 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_create.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_create.snap
@@ -73,7 +73,7 @@ Creates ~/.config/worktrunk/config.toml with the following content:
branches = false # Include branches without worktrees by default
remotes = false # Include remote branches by default

- # Commit Defaults (shared by `wt beta commit`, `wt beta squash`, and `wt merge`)
+ # Commit Defaults (shared by `wt step commit`, `wt step squash`, and `wt merge`)
[commit]
stage = "all" # What to stage: "all", "tracked", or "none"

diff --git a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_check.snap b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_check.snap
index 55c87c31d..96feeee5c 100644
--- a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_check.snap
+++ b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_check.snap
@@ -3,7 +3,6 @@ source: tests/integration_tests/list_column_alignment.rs
info:
program: wt
args:
- - beta
- list
env:
CLICOLOR_FORCE: "1"
@@ -18,13 +17,13 @@ info:
SOURCE_DATE_EPOCH: "1761609600"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
---
-success: false
-exit_code: 2
+success: true
+exit_code: 0
----- stdout -----
----- stderr -----
-error: unrecognized subcommand 'list'
+ Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
+@ main ^ ./test-repo [SHA] 10mo Initial commit
++ test +!? +1 -1 ./test [SHA] 10mo Initial commit
-Usage: wt beta [OPTIONS] <COMMAND>
-
-For more information, try '--help'.
+⚪ Showing 2 worktrees, 1 with changes
diff --git a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap
index 55c87c31d..25aaebd62 100644
--- a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap
+++ b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap
@@ -3,7 +3,6 @@ source: tests/integration_tests/list_column_alignment.rs
info:
program: wt
args:
- - beta
- list
env:
CLICOLOR_FORCE: "1"
@@ -18,13 +17,14 @@ info:
SOURCE_DATE_EPOCH: "1761609600"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
---
-success: false
-exit_code: 2
+success: true
+exit_code: 0
----- stdout -----
----- stderr -----
-error: unrecognized subcommand 'list'
+ Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
+@ main ^ ./test-repo [SHA] 10mo Initial commit
++ complex !? +1 -1 ./complex [SHA] 10mo Initial commit
++ simple + ? +1 -1 ./simple [SHA] 10mo Initial commit
-Usage: wt beta [OPTIONS] <COMMAND>
-
-For more information, try '--help'.
+⚪ Showing 3 worktrees, 2 with changes