-
Notifications
You must be signed in to change notification settings - Fork 236
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
feat: add verbose flag for pipeline values #861
Conversation
08875a4
to
3aa6bb4
Compare
@elliotforbes now that it's updated, are you able to review this and / or bug someone who can? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Let me ping the team, I've got another PR for this repo I'm looking to get out first which will likely cause conflicts. |
- Add a `-v` / `--verbose` flag to enable verbose output - Print the config values one line at a time, and add newlines - Write to stderr so that outputting to a file won't generate invalid YAML when writing files to stdout Fixes CircleCI-Public#860
@elliotforbes rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@wyardley - feel free to merge when ready, I'll cut a new release branch and get this out today hopefully! |
@elliotforbes i think someone with commit access will have to merge. |
Reintroduces the output style introduced in CircleCI-Public#861 to resolve CircleCI-Public#860, but reverted in CircleCI-Public#884
Resolve some issues from CircleCI-Public#861 and CircleCI-Public#896 - Suppress some whitespace when verbose output is not enabled - Write to stderr again - Use "%v" instead of "%s" so that "number" in pipeline values gets printed correctly - Sort values to provide stable output order for pipeline values
Resolve some issues from CircleCI-Public#861 and CircleCI-Public#896 - Suppress some whitespace when verbose output is not enabled - Write to stderr again - Use "%v" instead of "%s" so that "number" in pipeline values gets printed correctly - Sort values to provide stable output order for pipeline values
Checklist
=========
Internal Checklist
Changes
=======
-v
/--verbose
flag to enable verbose outputRationale
The current output is not aesthetically pleasing, and is also hard to read / follow. Additionally, people may want a way to suppress this new behavior
@particleflux also pointed out in #860 that in the
circleci config process
andcircleci config pack
commands, this will actually generate invalid YAML.Fixes #860
Considerations
Happy to adjust the option name / invert the behavior to make things more consistent with options elsewhere in the program, or to tweak the formatting / output slightly. I think this is, while maybe not perfect, a big improvement.
Screenshots
Before
After