feat: include a --no-wrap flag for table displays#3613
Merged
heroku-johnny merged 4 commits intomainfrom Apr 7, 2026
Merged
Conversation
--no-wrap flag for table displays
--no-wrap flag for table displays3d6222c to
7a280d2
Compare
Made-with: Cursor
Made-with: Cursor
7a280d2 to
8438953
Compare
Contributor
Contributor
Author
|
For the Regarding the **Update: For the |
Made-with: Cursor
k80bowman
approved these changes
Apr 7, 2026
Contributor
k80bowman
left a comment
There was a problem hiding this comment.
Looks good! Thank you for the update.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
Adds a
--no-wrapflag so tabular CLI output can stay on one line for easier copy/paste. Default behavior is unchanged (overflow: 'wrap'). With--no-wrap, tables use unbounded width (maxWidth: 'none') andoverflow: 'truncate'for single-line cells.The flag is defined in
@heroku-cli/command(flags.noWrap(), v12.3.1+). This repo bumps that dependency and uses a small shared helperhuxTableNoWrapOptions()insrc/lib/utils/tableUtils.tsso the same layout rules are not duplicated.Commands updated:
domains,ps(extended table),pg:credentials,data:pg:credentials,addons.Type of Change
Breaking Changes (major semver update)
!after your change type to denote a change that breaks current behaviorFeature Additions (minor semver update)
Patch Updates (patch semver update)
@heroku-cli/command)huxTableNoWrapOptionshelperTesting
Notes:
Manual check recommended on an app with long domain targets / wide addon rows. Automated tests stub
hux.table(or assert the helper) where applicable.Steps:
npm run buildnode ./bin/run domains -a <app>and... --no-wrapps -a <app> --extended --no-wrap,pg:credentials,data:pg:credentials,addonswith--no-wrapnpm run test:file -- test/unit/commands/domains/index.unit.test.ts test/unit/commands/ps/index.unit.test.ts test/unit/commands/pg/credentials.unit.test.ts test/unit/commands/data/pg/credentials/index.unit.test.ts test/unit/commands/addons/index.unit.test.ts test/unit/lib/utils/tableUtils.unit.test.tsScreenshots (if applicable)
Related Issues
GitHub issue: #3605
GUS work item: W-21715803
Notes / Follow-up
hux.tablecall sites do not use--no-wrapunless we add the flag there later.huxTableNoWrapOptionsinto@heroku-cli/commandif the team wants all table helpers in one package.