Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Update output system docs to reflect message builder pattern
Maximilian Rooscdc45b87ca63
diff --git a/.claude/rules/cli-output-formatting.md b/.claude/rules/cli-output-formatting.mdindex 771fb3c83..14292f3d6 100644--- a/.claude/rules/cli-output-formatting.md+++ b/.claude/rules/cli-output-formatting.md@@ -298,16 +298,16 @@ Never quote commands or branch names. Use styling to make them stand out:```rust// GOOD - bold in normal context-output::info(cformat!("Use <bold>wt merge</> to continue"))?;+output::print(info_message(cformat!("Use <bold>wt merge</> to continue")))?;// GOOD - bright-black for commands in hints-output::hint(cformat!("Run <bright-black>wt list</> to see worktrees"))?;+output::print(hint_message(cformat!("Run <bright-black>wt list</> to see worktrees")))?;// GOOD - plain hint without commands-output::hint("No changes to commit")?;+output::print(hint_message("No changes to commit"))?;// BAD - quoted commands-output::hint("Run 'wt list' to see worktrees")?;+output::print(hint_message("Run 'wt list' to see worktrees"))?;```## Color Detectiondiff --git a/.claude/rules/output-system-architecture.md b/.claude/rules/output-system-architecture.mdindex 455e68959..e8bd56c9a 100644--- a/.claude/rules/output-system-architecture.md+++ b/.claude/rules/output-system-architecture.md@@ -32,7 +32,11 @@ Decide once at the edge (`main()`), initialize globally, trust internally:```rust// In main.rs - the only place that knows about modes-output::initialize(if internal { OutputMode::Directive } else { OutputMode::Interactive });+let output_mode = match cli.internal {+ Some(shell) => output::OutputMode::Directive(shell),+ None => output::OutputMode::Interactive,+};+output::initialize(output_mode);// Everywhere else - just use the output functionsoutput::print(success_message("Created worktree"))?;