Skip to content

Redesign CLI output with pipe border format#76

Merged
erdembircan merged 5 commits intomasterfrom
task/75
Mar 3, 2026
Merged

Redesign CLI output with pipe border format#76
erdembircan merged 5 commits intomasterfrom
task/75

Conversation

@erdembircan
Copy link
Copy Markdown
Owner

[agent]

Summary

Closes #75

  • Replace standalone format-output.ts functions with a static FormatOutput class in FormatOutput.ts
  • Implement pipe border design (Design D) using box-drawing characters (, , └─)
  • Update PluginRescope.ts to use FormatOutput.header() / FormatOutput.footer() instead of section() / divider()
  • Rename and rewrite all related test files to match the new class structure

Output format

  ┌ plugin-a@owner
  │ ✓ rescoped to my-project (local)
  └─

Replace standalone positive/negative/section/divider functions with a
static FormatOutput class using pipe border design (Design D). The class
provides header(), footer(), positive(), and negative() methods with
box-drawing characters for visual grouping.
Replace section() loop with FormatOutput.header() before and
FormatOutput.footer() after each plugin operation. Use static class
methods for positive/negative output lines.
Replace format-output.test.ts with FormatOutput.test.ts. Tests now
verify the static class methods (header, footer, positive, negative)
instead of the removed standalone functions.
Replace section/divider assertions with FormatOutput.header() and
FormatOutput.footer() checks. Update import from format-output to
FormatOutput.
Copy link
Copy Markdown
Owner Author

@erdembircan erdembircan left a comment

Choose a reason for hiding this comment

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

Display Claude Code version output with version check header instead of printing the line whether it is positive or negative for version check.

Display the Claude Code version check inside a pipe border block
with a "version check" header, consistent with the per-plugin
output format.
@erdembircan
Copy link
Copy Markdown
Owner Author

[agent] Addressed the review feedback: the version check output is now wrapped in its own pipe border block with a "version check" header/footer, consistent with the per-plugin output format.

Before:

  │ ✓ Claude Code v1.0.27
  ┌ plugin-a@owner
  │ ✓ rescoped to my-project (local)
  └─

After:

  ┌ version check
  │ ✓ Claude Code v1.0.27
  └─
  ┌ plugin-a@owner
  │ ✓ rescoped to my-project (local)
  └─

Both the success and not-found cases are covered. Two new tests were added to verify the header/footer wrapping for each path. All 130 tests pass.

Copy link
Copy Markdown
Owner Author

@erdembircan erdembircan left a comment

Choose a reason for hiding this comment

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

LGTM.

@erdembircan erdembircan merged commit ad6b484 into master Mar 3, 2026
4 checks passed
@erdembircan erdembircan deleted the task/75 branch March 5, 2026 11:43
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.

Redesign CLI output with pipe border format

1 participant