-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
R4R: Add tendermint version command #3285
Conversation
af2c64d
to
ee9dd22
Compare
Codecov Report
@@ Coverage Diff @@
## develop #3285 +/- ##
==========================================
- Coverage 55.18% 55.1% -0.09%
==========================================
Files 134 134
Lines 9526 9540 +14
==========================================
Hits 5257 5257
- Misses 3938 3952 +14
Partials 331 331 |
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.
Good idea; let's clean up the output a bit - do we also have a P2P version? Pretty sure the RPC endpoints dump several more versions, let's see if we can print those too.
Tested ACK 👍 |
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.
changes LGTM, but I left a bit of feedback.
|
||
"github.com/cosmos/cosmos-sdk/client" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
const ( |
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.
Not sure if we need a constant for this. Should we also have a JSON output option like most commands?
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.
We don't support JSON in either gaiacli version
nor gaiad version
. I'd keep it simple, really.
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.
Actually - I think JSON output is a good idea. Lots of higher-level tooling might want to parse the version output, and I'd rather they not try to parse the raw text.
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.
No strong objections from me, will do then
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 will add this with the standardization of query outputs. Don't need to worry about this @alessio
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'm a fan of this change. Can change the output here to be JSON in a seperate PR if that works.
docs/
)PENDING.md
with issue #Files changed
in the github PR explorerFor Admin Use: