-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add Revision to version CLI output and add JSON support #8268
Conversation
d1fc590
to
f0b4476
Compare
@@ -0,0 +1,3 @@ | |||
Consul 1.99.3-beta1 | |||
Revision 5e5dbedd47a5f875b60e241c5555a9caab595246 |
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.
I don't know if this is an issue but there may be a tool/check in people's pipelines that parses the protocol from the 2nd line or tail -n 1
or something where this may break. In which case we would suggest them use the json formatter from now on.
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.
This should probably hold for v1.9 then. So merging to master and not backporting into release/1.8 is the way to go.
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.
Hmm, thinking about it I am not sure whether we should consider this a breaking change. We provide no guarantees about the output.
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.
Nice! Looks great!
Also add JSON format support
f0b4476
to
680ac0c
Compare
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!
The formatters style was taken from similar code for the ACL CLI.