Skip to content

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

Replace parentheses with semicolons in messages

Maximilian Roos618fba4c385f
diff --git a/src/commands/standalone.rs b/src/commands/standalone.rs
index 154164550..bce18c390 100644
--- a/src/commands/standalone.rs
+++ b/src/commands/standalone.rs
@@ -64,7 +64,7 @@ pub fn run_hook(hook_type: HookType, force: bool, name_filter: Option<&str>) ->
) -> anyhow::Result<()> {
if user.is_none() && project.is_none() {
return Err(worktrunk::git::GitError::Other {
- message: format!("No {hook_type} hook configured (neither user nor project)"),
+ message: format!("No {hook_type} hook configured; checked both user and project"),
}
.into());
}
diff --git a/src/output/handlers.rs b/src/output/handlers.rs
index 59aea7ee2..5f72ae1b2 100644
--- a/src/output/handlers.rs
+++ b/src/output/handlers.rs
@@ -314,11 +314,11 @@ pub fn handle_switch_output(
)))?;
} else if Shell::is_integration_configured().ok().flatten().is_some() {
super::print(warning_message(cformat!(
- "Worktree at <bold>{path_display}</>. Branch doesn't match path: {mismatch_info} (cannot cd, binary invoked directly)"
+ "Worktree at <bold>{path_display}</>. Branch doesn't match path: {mismatch_info}; cannot cd, binary invoked directly"
)))?;
} else {
super::print(warning_message(cformat!(
- "Worktree at <bold>{path_display}</>. Branch doesn't match path: {mismatch_info} (cannot cd, no shell integration)"
+ "Worktree at <bold>{path_display}</>. Branch doesn't match path: {mismatch_info}; cannot cd, no shell integration"
)))?;
super::shell_integration_hint(shell_integration_hint())?;
}
@@ -340,7 +340,7 @@ pub fn handle_switch_output(
let path_mismatch_warning = branch_info.expected_path.as_ref().map(|expected| {
let expected_display = format_path_for_display(expected);
warning_message(format!(
- "Worktree path doesn't match naming template (expected {expected_display})"
+ "Worktree path doesn't match naming template; expected {expected_display}"
))
});
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_path_mismatch_shows_hint.snap b/tests/snapshots/integration__integration_tests__switch__switch_path_mismatch_shows_hint.snap
index 754e41757..640371c52 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_path_mismatch_shows_hint.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_path_mismatch_shows_hint.snap
@@ -15,6 +15,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ GIT_TERMINAL_PROMPT: "0"
HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
@@ -31,4 +32,4 @@ cd '[PROJECT_ID]'
----- stderr -----
✅ Switched to worktree for feature @ [PROJECT_ID]
-🟡 Worktree path doesn't match naming template (expected [REPO].feature)
+🟡 Worktree path doesn't match naming template; expected [REPO].feature