Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix: use bright-black instead of bold in hint messages (#836)
Maximilian Roos5cba8f6a9541
diff --git a/CLAUDE.md b/CLAUDE.mdindex cf663f2cb..09bb237d9 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -37,6 +37,14 @@ Use consistent terminology in documentation, help text, and code comments:- **default branch** — the branch (main, master, etc.), not "main branch"- **target** — the destination for merge/rebase/push (e.g., "merge target"). Don't use "target" to mean worktrees — say "worktree" or "worktrees"+## Skills++Check `.claude/skills/` for available skills and load those relevant to your task.++Key skills:++- **`writing-user-outputs`** — Required when modifying user-facing messages, hints, warnings, errors, or any terminal output formatting. Documents ANSI color nesting rules, message patterns, and output system architecture.+## Testing### Running Testsdiff --git a/src/config/deprecation.rs b/src/config/deprecation.rsindex f8062696b..2aee40574 100644--- a/src/config/deprecation.rs+++ b/src/config/deprecation.rs@@ -584,8 +584,7 @@ fn write_migration_file(eprintln!("{}",hint_message(cformat!(- "Wrote migrated <bold>{}</>. To apply:",- new_filename+ "Wrote migrated <bright-black>{new_filename}</>. To apply:")));eprintln!(@@ -717,8 +716,7 @@ pub fn format_deprecation_details(info: &DeprecationInfo) -> String {out,"{}",hint_message(cformat!(- "Wrote migrated <bold>{}</>. To apply:",- new_filename+ "Wrote migrated <bright-black>{new_filename}</>. To apply:")));let _ = writeln!(diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snapindex 0e94edfd3..41c7cad1e 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap@@ -37,7 +37,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml[33m▲[39m [33mUser config uses deprecated template variables: [2mrepo_root[22m → [1mrepo_path[22m, [2mmain_worktree[22m → [1mrepo[22m[39m-[2m↳[22m [2mWrote migrated [1mconfig.toml.new[22m. To apply:[22m+[2m↳[22m [2mWrote migrated [90mconfig.toml.new[39m. To apply:[22m[107m [0m [2m[0m[2m[34mmv[0m[2m [0m[2m[36m--[0m[2m [TEMP_HOME]/.config/worktrunk/config.toml.new [TEMP_HOME]/.config/worktrunk/config.toml[107m [0m [1mdiff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new[107m [0m [1mindex d95d100..ceb381d 100644[mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snapindex 07292bcf6..69463e972 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap@@ -37,7 +37,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml[33m▲[39m [33mUser config uses deprecated config sections: [projects."github.com/example/repo".commit-generation] → [projects."github.com/example/repo".commit.generation][39m-[2m↳[22m [2mWrote migrated [1mconfig.toml.new[22m. To apply:[22m+[2m↳[22m [2mWrote migrated [90mconfig.toml.new[39m. To apply:[22m[107m [0m [2m[0m[2m[34mmv[0m[2m [0m[2m[36m--[0m[2m [TEMP_HOME]/.config/worktrunk/config.toml.new [TEMP_HOME]/.config/worktrunk/config.toml[107m [0m [1mdiff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new[107m [0m [1mindex de80729..eb69d44 100644[mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snapindex 3cfc94540..633ac1962 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap@@ -40,7 +40,7 @@ exit_code: 0[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[33m▲[39m [33mProject config uses deprecated config sections: [commit-generation] → [commit.generation][39m-[2m↳[22m [2mWrote migrated [1mwt.toml.new[22m. To apply:[22m+[2m↳[22m [2mWrote migrated [90mwt.toml.new[39m. To apply:[22m[107m [0m [2m[0m[2m[34mmv[0m[2m [0m[2m[36m--[0m[2m _REPO_/.config/wt.toml.new _REPO_/.config/wt.toml[107m [0m [1mdiff --git a_REPO_/.config/wt.toml b_REPO_/.config/wt.toml.new[m[107m [0m [1mindex 074c30f..e97c84f 100644[mdiff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snapindex 9f3194707..fb8354677 100644--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snap@@ -42,5 +42,5 @@ exit_code: 0----- stderr -----[33m▲[39m [33mUser config has deprecated settings. To see details, run [90mwt config show[39m[39m-[2m↳[22m [2mWrote migrated [1mtest-config.toml.new[22m. To apply:[22m+[2m↳[22m [2mWrote migrated [90mtest-config.toml.new[39m. To apply:[22m[107m [0m [2m[0m[2m[34mmv[0m[2m [0m[2m[36m--[0m[2m [TEST_CONFIG_NEW] [TEST_CONFIG]diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snapindex 9f3194707..fb8354677 100644--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snap@@ -42,5 +42,5 @@ exit_code: 0----- stderr -----[33m▲[39m [33mUser config has deprecated settings. To see details, run [90mwt config show[39m[39m-[2m↳[22m [2mWrote migrated [1mtest-config.toml.new[22m. To apply:[22m+[2m↳[22m [2mWrote migrated [90mtest-config.toml.new[39m. To apply:[22m[107m [0m [2m[0m[2m[34mmv[0m[2m [0m[2m[36m--[0m[2m [TEST_CONFIG_NEW] [TEST_CONFIG]diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snapindex 9f3194707..fb8354677 100644--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap@@ -42,5 +42,5 @@ exit_code: 0----- stderr -----[33m▲[39m [33mUser config has deprecated settings. To see details, run [90mwt config show[39m[39m-[2m↳[22m [2mWrote migrated [1mtest-config.toml.new[22m. To apply:[22m+[2m↳[22m [2mWrote migrated [90mtest-config.toml.new[39m. To apply:[22m[107m [0m [2m[0m[2m[34mmv[0m[2m [0m[2m[36m--[0m[2m [TEST_CONFIG_NEW] [TEST_CONFIG]diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snapindex 02b7c2b47..c969e338c 100644--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap@@ -43,7 +43,7 @@ exit_code: 0----- stderr -----[33m▲[39m [33mUser config has deprecated settings. To see details, run [90mwt config show[39m[39m-[2m↳[22m [2mWrote migrated [1mtest-config.toml.new[22m. To apply:[22m+[2m↳[22m [2mWrote migrated [90mtest-config.toml.new[39m. To apply:[22m[107m [0m [2m[0m[2m[34mmv[0m[2m [0m[2m[36m--[0m[2m [TEST_CONFIG_NEW] [TEST_CONFIG][2m○[22m Expanding [1mworktree-path[22m[107m [0m ../{{ main_worktree }}.{{ branch }} [2m→[22m ../repo.feature-a