New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the command "nx show projects" return a list separated by new line by default? #22219
Comments
Would you like to add a |
@FrozenPandaz Not sure I understand you. Do you mean something like |
Sorry, I was unclear. There currently is no way to change the separator used. However, if you would like to add the feature, it would be a |
…with provided character `npx nx show projects --affected --type=app --sep ","` will output the affected projects with a "," seperating each project ouput closed nrwl#22219
…d character `npx nx show projects --affected --type=app --sep ","` will output the affected projects with a "," seperating each project ouput closed nrwl#22219
Current Behavior
Maybe it's by design, but when I run the command
npx nx show projects --affected --type=app --base=$NX_BASE --head=$NX_HEAD
it returns a list of apps separated by new line "\n", however, I wished it was separated by comma.Current output:
app1
app2
app3
Expected Behavior
As the expected behaviour, I'd like to (either by default), pass a parameter which sets the separation character.
As a workaround, I'm doing
$(npx nx show projects --affected --type=app --base=$NX_BASE --head=$NX_HEAD | tr '\n' ',' | sed 's/,$//')
which outputs: app1,app2,app3
GitHub Repo
No response
Steps to Reproduce
npx nx show projects --affected --type=app --base=$NX_BASE --head=$NX_HEAD
Nx Report
Failure Logs
No response
Package Manager Version
1.22.1
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: