Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Remove blank lines between command listings in approval prompts
Maximilian Roos14107f813987
diff --git a/src/commands/command_approval.rs b/src/commands/command_approval.rsindex 5d4ce8813..2f6a1be68 100644--- a/src/commands/command_approval.rs+++ b/src/commands/command_approval.rs@@ -124,7 +124,6 @@ fn prompt_for_batch_approval(commands: &[&Command], project_id: &str) -> anyhow:};eprintln!("{label}");eprint!("{}", format_bash_with_gutter(&cmd.expanded, ""));- eprintln!();}// Check if stdin is a TTY before attempting to promptdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snapindex 6405ec92b..cfb2f65f3 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snap@@ -8,7 +8,6 @@ y⚪ post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0m-❓ Allow and remember? [1m[y/N][22m🔄 [36mRunning project post-create:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snapindex 854cbf637..e85ae71f6 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snap@@ -8,7 +8,6 @@ n⚪ post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0m-❓ Allow and remember? [1m[y/N][22m⚪ Commands declined, continuing worktree creation✅ [32m[32mCreated new worktree for [1mtest-decline[22m from [1mmain[22m at [1m[REPO]/repo.test-decline[39m[22m[39mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snapindex 2ce98cd4d..132c64e82 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snap@@ -8,10 +8,8 @@ y⚪ post-create [1mfirst[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First command'[0m[2m[0m-⚪ post-create [1mthird[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Third command'[0m[2m[0m-❓ Allow and remember? [1m[y/N][22m🔄 [36mRunning project post-create [1mfirst[22m:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First command'[0m[2m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snapindex 354ae6453..5c892b033 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snap@@ -8,10 +8,8 @@ n⚪ post-create [1mfirst[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First command'[0m[2m[0m-⚪ post-create [1mthird[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Third command'[0m[2m[0m-❓ Allow and remember? [1m[y/N][22m⚪ Commands declined, continuing worktree creation✅ [32m[32mCreated new worktree for [1mtest-mixed-decline[22m from [1mmain[22m at [1m[REPO]/repo.test-mixed-decline[39m[22m[39mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snapindex 079c27971..98d454f9c 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snap@@ -8,13 +8,10 @@ y⚪ post-create [1mfirst[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First command'[0m[2m[0m-⚪ post-create [1msecond[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Second command'[0m[2m[0m-⚪ post-create [1mthird[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Third command'[0m[2m[0m-❓ Allow and remember? [1m[y/N][22m🔄 [36mRunning project post-create [1mfirst[22m:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First command'[0m[2m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snapindex 703aa1899..3edb6c96a 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snap@@ -8,13 +8,10 @@ y⚪ post-create [1minstall[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Installing dependencies...'[0m[2m[0m-⚪ post-create [1mbuild[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Building project...'[0m[2m[0m-⚪ post-create [1mtest[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Running tests...'[0m[2m[0m-❓ Allow and remember? [1m[y/N][22m🔄 [36mRunning project post-create [1minstall[22m:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Installing dependencies...'[0m[2m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snapindex c1c28be53..e99923648 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snap@@ -8,7 +8,6 @@ y⚪ post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0m-❓ Allow and remember? [1m[y/N][22m🟡 [33mFailed to save command approval: Failed to write config file: Permission denied (os error 13)[39m💡 [2mApproval will be requested again next time.[22mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_approval_prompt.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_approval_prompt.snapindex 5bf807737..80878f56f 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_approval_prompt.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_approval_prompt.snap@@ -6,11 +6,8 @@ expression: prompt_only⚪ post-create install:echo 'Installing dependencies...'-⚪ post-create build:echo 'Building project...'-⚪ post-create test:echo 'Running tests...'-❓ Allow and remember? [y/N]diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_switch_back.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_switch_back.snapindex 9d1d0ded2..a00343b8a 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_switch_back.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_switch_back.snap@@ -1,6 +1,5 @@---source: tests/integration_tests/shell_wrapper.rs-assertion_line: 1339expression: output.normalized()---✅ [32m[32mSwitched to worktree for [1mfeature-api[22m at [1m[TMPDIR]/repo.feature-api[39m[22m[39mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snapindex c8b3fec7b..4a44a942f 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap@@ -28,7 +28,6 @@ exit_code: 1⚪ post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snapindex 076711c68..127cffb25 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap@@ -10,10 +10,8 @@ exit_code: 1⚪ post-create [1mfirst[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First command'[0m[2m[0m-⚪ post-create [1mthird[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Third command'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snapindex c9d034f1e..871d8a752 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap@@ -10,16 +10,12 @@ exit_code: 1⚪ post-create [1mbranch[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Branch: test-nested-branch'[0m[2m[0m-⚪ post-create [1mworktree[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Worktree: [REPO].test-nested-branch'[0m[2m[0m-⚪ post-create [1mrepo[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Repo: repo'[0m[2m[0m-⚪ post-create [1mpwd[22m:[107m [0m [2m[0m[2m[34mcd[0m[2m [REPO].test-nested-branch [0m[2m[36m&&[0m[2m [0m[2m[34mpwd[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snapindex 7f345ab0c..df0ae93f9 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap@@ -10,13 +10,10 @@ exit_code: 1⚪ post-create [1minstall[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Installing dependencies...'[0m[2m[0m-⚪ post-create [1mbuild[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Building project...'[0m[2m[0m-⚪ post-create [1mtest[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Running tests...'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snapindex 814bb9496..5897426a0 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap@@ -10,7 +10,6 @@ exit_code: 1⚪ post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Worktree path: [REPO].feature-test-approval'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snapindex 076711c68..127cffb25 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap@@ -10,10 +10,8 @@ exit_code: 1⚪ post-create [1mfirst[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First command'[0m[2m[0m-⚪ post-create [1mthird[22m:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Third command'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snapindex 675d0b547..3e79ad0cd 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap@@ -10,7 +10,6 @@ exit_code: 1⚪ post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m [0m[2m[36m>[0m[2m output.txt[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snap b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snapindex fe388ddd5..c9abbe748 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snap@@ -10,7 +10,6 @@ exit_code: 1⚪ post-merge:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Post-merge cleanup for main'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snap b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snapindex 92ebf669b..e2dc71126 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snap@@ -10,7 +10,6 @@ exit_code: 1⚪ pre-merge:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Running pre-merge checks on main'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snapindex 3e490b44e..28a0e316e 100644--- a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap+++ b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap@@ -29,7 +29,6 @@ exit_code: 1⚪ post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test'[0m[2m[0m-❌ [31mCannot prompt for approval in non-interactive environment[39m💡 [2mIn CI/CD, use [90m--force[39m to skip prompts. To pre-approve commands, use [90mwt config approvals add[39m[22mdiff --git a/tests/snapshots/integration__integration_tests__approvals__add_approvals_force.snap b/tests/snapshots/integration__integration_tests__approvals__add_approvals_force.snapdeleted file mode 100644index dc45983a7..000000000--- a/tests/snapshots/integration__integration_tests__approvals__add_approvals_force.snap+++ /dev/null@@ -1,28 +0,0 @@-----source: tests/integration_tests/approvals.rs-info:- program: wt- args:- - config- - approvals- - add- - "--force"- env:- CLICOLOR_FORCE: "1"- COLUMNS: "150"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1735776000"- WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"-----success: true-exit_code: 0------ stdout ------------ stderr ------✅ [32mCommands approved; not saved (--force)[39mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snapdeleted file mode 100644index bae3d43a1..000000000--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap+++ /dev/null@@ -1,35 +0,0 @@-----source: tests/integration_tests/post_start_commands.rs-info:- program: wt- args:- - switch- - "--create"- - feature- env:- CLICOLOR_FORCE: "1"- COLUMNS: "150"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- HOME: "[TEST_HOME]"- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1735776000"- WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"-----success: true-exit_code: 0------ stdout ------------ stderr ------🔄 [36mRunning post-create:[39m-[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'First'[0m[2m[0m-[0mFirst-🔄 [36mRunning post-create:[39m-[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Second'[0m[2m[0m-[0mSecond-✅ [32m[32mCreated new worktree for [1mfeature[22m from [1mmain[22m at [1m[REPO].feature[39m[22m[39m-💡 [2mRun [90mwt config shell install[39m to enable automatic cd[22mdiff --git a/tests/snapshots/integration__integration_tests__user_hooks__no_user_hooks_flag.snap b/tests/snapshots/integration__integration_tests__user_hooks__no_user_hooks_flag.snapdeleted file mode 100644index eded8f916..000000000--- a/tests/snapshots/integration__integration_tests__user_hooks__no_user_hooks_flag.snap+++ /dev/null@@ -1,34 +0,0 @@-----source: tests/integration_tests/user_hooks.rs-info:- program: wt- args:- - switch- - "--create"- - feature- - "--no-user-hooks"- env:- CLICOLOR_FORCE: "1"- COLUMNS: "150"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1735776000"- WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"-----success: false-exit_code: 2------ stdout ------------ stderr ------[1m[31merror:[0m unexpected argument '[1m[33m--no-user-hooks[0m' found-- [1m[32mtip:[0m to pass '[1m[33m--no-user-hooks[0m' as a value, use '[1m[32m-- --no-user-hooks[0m'--[1m[32mUsage:[0m [1m[36mwt switch[0m [1m[36m--create[0m [36m<BRANCH>[0m--For more information, try '[1m[36m--help[0m'.diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_skipped.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_skipped.snapdeleted file mode 100644index eded8f916..000000000--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_skipped.snap+++ /dev/null@@ -1,34 +0,0 @@-----source: tests/integration_tests/user_hooks.rs-info:- program: wt- args:- - switch- - "--create"- - feature- - "--no-user-hooks"- env:- CLICOLOR_FORCE: "1"- COLUMNS: "150"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1735776000"- WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"-----success: false-exit_code: 2------ stdout ------------ stderr ------[1m[31merror:[0m unexpected argument '[1m[33m--no-user-hooks[0m' found-- [1m[32mtip:[0m to pass '[1m[33m--no-user-hooks[0m' as a value, use '[1m[32m-- --no-user-hooks[0m'--[1m[32mUsage:[0m [1m[36mwt switch[0m [1m[36m--create[0m [36m<BRANCH>[0m--For more information, try '[1m[36m--help[0m'.diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_pre_merge_skipped.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_pre_merge_skipped.snapdeleted file mode 100644index f1b3acfe3..000000000--- a/tests/snapshots/integration__integration_tests__user_hooks__user_pre_merge_skipped.snap+++ /dev/null@@ -1,35 +0,0 @@-----source: tests/integration_tests/user_hooks.rs-info:- program: wt- args:- - merge- - main- - "--force"- - "--no-remove"- - "--no-user-hooks"- env:- CLICOLOR_FORCE: "1"- COLUMNS: "150"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1735776000"- WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"-----success: false-exit_code: 2------ stdout ------------ stderr ------[1m[31merror:[0m unexpected argument '[1m[33m--no-user-hooks[0m' found-- [1m[32mtip:[0m to pass '[1m[33m--no-user-hooks[0m' as a value, use '[1m[32m-- --no-user-hooks[0m'--[1m[32mUsage:[0m [1m[36mwt merge[0m [1m[36m--force[0m [1m[36m--no-remove[0m [36m<TARGET>[0m--For more information, try '[1m[36m--help[0m'.diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_pre_remove_skipped.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_pre_remove_skipped.snapdeleted file mode 100644index 68e54b5c5..000000000--- a/tests/snapshots/integration__integration_tests__user_hooks__user_pre_remove_skipped.snap+++ /dev/null@@ -1,34 +0,0 @@-----source: tests/integration_tests/user_hooks.rs-info:- program: wt- args:- - remove- - feature- - "--force-delete"- - "--no-user-hooks"- env:- CLICOLOR_FORCE: "1"- COLUMNS: "150"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1735776000"- WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"-----success: false-exit_code: 2------ stdout ------------ stderr ------[1m[31merror:[0m unexpected argument '[1m[33m--no-user-hooks[0m' found-- [1m[32mtip:[0m to pass '[1m[33m--no-user-hooks[0m' as a value, use '[1m[32m-- --no-user-hooks[0m'--[1m[32mUsage:[0m [1m[36mwt remove[0m [1m[36m--force-delete[0m [36m<WORKTREES>...[0m--For more information, try '[1m[36m--help[0m'.