Skip to content

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

Merged
aws-cdk-automation merged 2 commits into
aws:mainfrom
faridnsh:columns-diff-table-width
Jul 28, 2026
Merged

feat(toolkit-lib): Use COLUMNS env var for tables#1704
aws-cdk-automation merged 2 commits into
aws:mainfrom
faridnsh:columns-diff-table-width

Conversation

@faridnsh

@faridnsh faridnsh commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

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.
@aws-cdk-automation
aws-cdk-automation added this pull request to the merge queue Jul 28, 2026
@iankhou

iankhou commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution!

Merged via the queue into aws:main with commit 53368d1 Jul 28, 2026
15 of 18 checks passed
@faridnsh
faridnsh deleted the columns-diff-table-width branch July 28, 2026 15:22
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.

4 participants