Skip to content

fix(output): replace remaining quoted names with bold styling - #1380

Merged
max-sixty merged 4 commits into
mainfrom
output-guideline-audit
Mar 8, 2026
Merged

max-sixty merged 4 commits into
mainfrom
output-guideline-audit

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Follow-up to #1375. Continue the quoted-name audit beyond src/commands/:

  • output/global.rs — bold command name in exec failure error
  • llm.rs — bold file path in template read error
  • git/repository/worktrees.rs — remove single quotes from @ in action strings (two call sites)

This was written by Claude Code on behalf of @max-sixty

max-sixty and others added 3 commits March 8, 2026 14:18
Replace single-quoted command/branch names with cformat! bold styling
in bail!/with_context error messages, per output guidelines.

Co-Authored-By: Claude <[email protected]>
Continue the quoted-name audit beyond src/commands/:
- output/global.rs: bold command name in exec error
- llm.rs: bold file path in template read error
- git/repository/worktrees.rs: remove quotes from @ in action strings

Co-Authored-By: Claude <[email protected]>
worktrunk-bot
worktrunk-bot previously approved these changes Mar 8, 2026

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows CI failed: the use color_print::cformat; import added to src/output/global.rs is only used inside the #[cfg(unix)] execute_command function. On Windows, that function doesn't exist, so the import is unused and clippy fails.

Fix: move the import behind #[cfg(unix)] or scope it inside the function.

@worktrunk-bot
worktrunk-bot dismissed their stale review March 8, 2026 23:10

CI failed — unused import on Windows (color_print::cformat behind cfg(unix))

The cformat import is only used in the unix-only execute_command
function. Without the gate, Windows CI fails with unused-import error.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit bcb61cb into main Mar 8, 2026
21 of 22 checks passed
@max-sixty
max-sixty deleted the output-guideline-audit branch March 8, 2026 23:48
max-sixty added a commit that referenced this pull request Mar 9, 2026
Switches `format!` → `cformat!` in the Display impl for `DetachedHead`
and
`NotInWorktree`, so action strings can include color-print styling tags.
All
other GitError variants already use `cformat!` — these two were the only
holdouts.

Follow-up to #1380.

> _This was written by Claude Code on behalf of @max-sixty_

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants