Skip to content

add --no-commas flag to to nuon for compact output without comma separators - #18185

Merged
fdncred merged 2 commits into
nushell:mainfrom
fdncred:nuon_no_commas
May 12, 2026
Merged

fdncred merged 2 commits into
nushell:mainfrom
fdncred:nuon_no_commas

Conversation

@fdncred

@fdncred fdncred commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR adds a --no-commas flag to to nuon so that nuon can be even more succinct by not using commas.

User-facing changes (Release notes)

Added --no-commas flag to to nuon to exclude optional commas

When you use the new --no-commas flag on to nuon you won't have to see commas. Since nuon doesn't require commas, this will make the output more succinct. Some may argue that it's harder to read, which may be true, but nuon doesn't care about that.

❯ ls | to nuon --indent 2 --list-of-records | str length
3312
❯ ls | to nuon --indent 2 --list-of-records --no-commas | str length
3169
❯ ls | to nuon | str length
2260
❯ ls | to nuon --no-commas | str length
2114

Sometimes, every little bit helps.

Additional notes

@fdncred
fdncred merged commit 50ddb0a into nushell:main May 12, 2026
17 checks passed
@fdncred
fdncred deleted the nuon_no_commas branch May 12, 2026 13:11
@github-actions github-actions Bot added this to the v0.113.0 milestone May 12, 2026
@fdncred fdncred added notes:ready Indicates Ready for Release notes notes:additions Noted in "Additions" section labels May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:additions Noted in "Additions" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant