Skip to content

feat(pretty): indent(text, spaces) for indented blocks - #44

Merged
leemour merged 2 commits into
mainfrom
feat/indent
Oct 6, 2026
Merged

leemour merged 2 commits into
mainfrom
feat/indent

Conversation

@leemour

@leemour leemour commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Task

Give tg-cli and max-cli one shared way to indent a block of text in their setup screens.

Why

In both setup screens the steps print as a flat list, and the QR code sits against the left edge. Both CLIs will indent a step's body and the QR code. With one shared function, the two screens look the same. The summary at the end already uses renderPretty, which aligns its labels.

What

  • indent(text, spaces) in src/pretty.ts, exported from the root. Empty lines stay empty, so no trailing spaces are printed.
  • A CHANGELOG.md entry under ## Unreleased, in the Added section.

Testing

  • New src/pretty.test.ts.
  • pnpm lint, pnpm typecheck, pnpm test:coverage (243 passed) and pnpm docs:check pass.

🤖 Generated with Claude Code

leemour and others added 2 commits October 7, 2026 00:14
tg-cli and max-cli print their setup steps as a flat list, and the QR code
sits against the left edge. Both will indent a step's body and the QR code
with one shared function, so the two setup screens stay alike. Empty lines
stay empty, so the terminal gets no trailing spaces.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@leemour
leemour merged commit b8acbee into main Oct 6, 2026
4 checks passed
@leemour
leemour deleted the feat/indent branch October 9, 2026 09:28
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.

1 participant