Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
refactor(output): Make removed primary path bold green
Maximilian Roos1bf64e8990eb
diff --git a/src/output/handlers.rs b/src/output/handlers.rsindex acd0265c7..286004d2d 100644--- a/src/output/handlers.rs+++ b/src/output/handlers.rs@@ -23,9 +23,8 @@ fn format_switch_message(result: &SwitchResult, branch: &str) -> String {/// Format message for remove operation (includes emoji and color for consistency)fn format_remove_message(result: &RemoveResult, branch: Option<&str>) -> String {- use worktrunk::styling::{AnstyleStyle, GREEN, SUCCESS_EMOJI};+ use worktrunk::styling::{GREEN, SUCCESS_EMOJI};let green_bold = GREEN.bold();- let dim = AnstyleStyle::new().dimmed();match result {RemoveResult::AlreadyOnDefault(branch) => {@@ -43,7 +42,7 @@ fn format_remove_message(result: &RemoveResult, branch: Option<&str>) -> String.unwrap_or_default();if *changed_directory {format!(- "{SUCCESS_EMOJI} {GREEN}Removed worktree{branch_suffix}, returned to primary at {GREEN:#}{dim}{}{dim:#}",+ "{SUCCESS_EMOJI} {GREEN}Removed worktree{branch_suffix}, returned to primary at {green_bold}{}{green_bold:#}{GREEN:#}",primary_path.display())} else {diff --git a/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snap b/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snapindex 62fbe5493..916eb609e 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snap@@ -16,12 +16,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpjJwPSv/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpEsMvsL/test-config.toml---success: trueexit_code: 0----- stdout -----π [36mRemoving worktree for [1m[36mfeature-current[0m...[0m-β [32mRemoved worktree for [1m[32mfeature-current[0m, returned to primary at [0m[2m[REPO][0m+β [32mRemoved worktree for [1m[32mfeature-current[0m, returned to primary at [1m[32m[REPO][0m[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snap b/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snapindex 5f69878d0..39a9348d5 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snap@@ -15,12 +15,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp4lQBwz/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpZPWxJo/test-config.toml---success: trueexit_code: 0----- stdout -----π [36mRemoving worktree...[0m-β [32mRemoved worktree, returned to primary at [0m[2m[REPO][0m+β [32mRemoved worktree, returned to primary at [1m[32m[REPO][0m[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snap b/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snapindex 0c6c1d1dd..81eb4cf86 100644Binary files a/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snap and b/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snap differdiff --git a/tests/snapshots/integration__integration_tests__remove__remove_multiple_including_current.snap b/tests/snapshots/integration__integration_tests__remove__remove_multiple_including_current.snapindex 9b65bfc07..49625f3a3 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_multiple_including_current.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_multiple_including_current.snap@@ -18,7 +18,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpR7VM26/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmplyBFa9/test-config.toml---success: trueexit_code: 0@@ -28,6 +28,6 @@ exit_code: 0π [36mRemoving worktree for [1m[36mfeature-c[0m...[0mβ [32mRemoved worktree for [1m[32mfeature-c[0m[0mπ [36mRemoving worktree for [1m[36mfeature-a[0m...[0m-β [32mRemoved worktree for [1m[32mfeature-a[0m, returned to primary at [0m[2m[REPO][0m+β [32mRemoved worktree for [1m[32mfeature-a[0m, returned to primary at [1m[32m[REPO][0m[0m----- stderr -----