Skip to content

Disable text wrapping for non-TTY output#404

Merged
dan-manges merged 1 commit intomainfrom
dan/no-wrap-no-tty
Mar 9, 2026
Merged

Disable text wrapping for non-TTY output#404
dan-manges merged 1 commit intomainfrom
dan/no-wrap-no-tty

Conversation

@dan-manges
Copy link
Member

Summary

  • packages list and packages show no longer wrap description text when stdout is not a TTY (e.g., piped output)
  • Wrapping is still applied when outputting to a terminal

Test plan

  • Existing wrapping tests updated to use TTY setup and continue to pass
  • New tests added verifying wrapping is disabled for non-TTY output
  • Full unit test suite passes (go test ./internal/... ./cmd/...)

🤖 Generated with Claude Code

When stdout is not a TTY (e.g., piped output), `packages list` and
`packages show` no longer wrap descriptions to a fixed column width.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dan-manges dan-manges merged commit d379b9e into main Mar 9, 2026
1 check passed
@dan-manges dan-manges deleted the dan/no-wrap-no-tty branch March 9, 2026 14:08
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