Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat: remove extra blank line in approval prompt and update snapshots
Maximilian Roos8148c691f4bb
diff --git a/src/commands/command_approval.rs b/src/commands/command_approval.rsindex 877ac99c1..2eeeab128 100644--- a/src/commands/command_approval.rs+++ b/src/commands/command_approval.rs@@ -88,7 +88,6 @@ fn prompt_for_batch_approval(commands: &[&Command], project_id: &str) -> std::io// In interactive mode, flushes both stdout and stderrcrate::output::flush_for_stderr_prompt()?;- eprintln!();eprintln!("{WARNING_EMOJI} {WARNING}{WARNING_BOLD}{project_name}{WARNING_BOLD:#}{WARNING} wants to execute {WARNING_BOLD}{count}{WARNING_BOLD:#}{WARNING} command{plural}:{WARNING:#}");diff --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 220110376..bfd7aebaa 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@@ -9,7 +9,6 @@ exit_code: 0π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m2[0m[33m commands:[0mπ post-create:diff --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 b5dcb0d58..4960fc85e 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@@ -9,7 +9,6 @@ exit_code: 0π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m4[0m[33m commands:[0mπ post-create:diff --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 e050e2320..2a65e354b 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@@ -9,7 +9,6 @@ exit_code: 0π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m3[0m[33m commands:[0mπ post-create [1minstall[0m:diff --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 386de982c..943692561 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@@ -9,7 +9,6 @@ exit_code: 0π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m1[0m[33m command:[0mπ post-create:diff --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 d1b5e0484..2b5ca7ed2 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@@ -9,7 +9,6 @@ exit_code: 0π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m2[0m[33m commands:[0mπ post-create:diff --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 6be8370c1..933ddef08 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@@ -9,7 +9,6 @@ exit_code: 0π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m1[0m[33m command:[0mπ post-create:diff --git a/tests/snapshots/integration__integration_tests__approval_ui__permission_error_user_output.snap b/tests/snapshots/integration__integration_tests__approval_ui__permission_error_user_output.snapindex 502641a91..3a786a53a 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__permission_error_user_output.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__permission_error_user_output.snap@@ -12,7 +12,6 @@ exit_code: 0π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m1[0m[33m command:[0mπ post-create:diff --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 c4003fc61..d95e1699c 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@@ -7,7 +7,6 @@ exit_code: 1----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m1[0m[33m command:[0mπ post-merge:diff --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 bb58104aa..8d82dac68 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@@ -7,7 +7,6 @@ exit_code: 1----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m1[0m[33m command:[0mπ pre-merge:diff --git a/tests/snapshots/integration__integration_tests__approvals__ask_approvals_all_none_approved.snap b/tests/snapshots/integration__integration_tests__approvals__ask_approvals_all_none_approved.snapindex 13f0d739a..7984d6c06 100644--- a/tests/snapshots/integration__integration_tests__approvals__ask_approvals_all_none_approved.snap+++ b/tests/snapshots/integration__integration_tests__approvals__ask_approvals_all_none_approved.snap@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpn5sywa/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfCfS8A/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,6 @@ exit_code: 0βͺ Commands declined----- stderr ------π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m1[0m[33m command:[0mπ post-create: