Skip to content

feat(toolkit-lib): Use COLUMNS env var for tables#1704

Open
faridnsh wants to merge 1 commit into
aws:mainfrom
faridnsh:columns-diff-table-width
Open

feat(toolkit-lib): Use COLUMNS env var for tables#1704
faridnsh wants to merge 1 commit into
aws:mainfrom
faridnsh:columns-diff-table-width

Conversation

@faridnsh

@faridnsh faridnsh commented Jul 4, 2026

Copy link
Copy Markdown

When stdout is not a TTY, process.stdout.columns is undefined and diff tables render at their unbounded natural width. CI log viewers such as CodeBuild then wrap the output and make security diffs difficult to read.

This falls back to a positive integer from the COLUMNS environment variable, allowing the user to set it, while preserving process.stdout.columns precedence. Invalid or unset values retain the existing unbounded behavior.

Checklist

  • This change contains a major version upgrade for a dependency and I confirm all breaking changes are addressed
    • Release notes for the new version:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

When stdout is not a TTY, process.stdout.columns is undefined and diff tables render at their unbounded natural width. CI log viewers such as CodeBuild then wrap the output and make security diffs difficult to read.

Fall back to a positive integer from the COLUMNS environment variable while preserving process.stdout.columns precedence. Invalid or unset values retain the existing unbounded behavior.
@faridnsh faridnsh deployed to automation July 4, 2026 19:12 — with GitHub Actions Active
@github-actions github-actions Bot added the p2 label Jul 4, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team July 4, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant