-
-
Notifications
You must be signed in to change notification settings - Fork 563
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(rust): Add JSON output support for vault list
and vault show
#6184
feat(rust): Add JSON output support for vault list
and vault show
#6184
Conversation
Will address failing tests/lints shortly :) edit: Resolved |
ae74de8
to
0d676c0
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.
Looks great, thanks @solidiquis for fixing these issues! I've added a couple of comments to keep the tests' checks as they were before.
0d676c0
to
7c42d2f
Compare
Thanks again @adrianbenavides for the assist! Just updated the test. Will be more diligent with that next time around. |
7c42d2f
to
cc039ec
Compare
813aabe
to
c1f3b8e
Compare
c1f3b8e
to
9d347c8
Compare
9d347c8
to
4a48c6b
Compare
4a48c6b
to
7962d61
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.
Thanks @solidiquis for your contribution 🙏
It will get merged ASAP 🚀
Current behavior
--output json
is currently unsupported forvault list
andvault show
Proposed changes
This PR adds support for
--output json
forvault list
andvault show
by derivingSerialize
forVaultState
to produce and write JSON strings in relevant areas.Updated
implementations/rust/ockam/ockam_command/tests/bats/vault.bats
as well to test for partial equivalence with JSON output since the JSON output takes precedence over the plain variant whenstdout
isn't a tty.ockam vault list
by implementing--output json
#6139ockam vault show
by adding support for--output json
#6135ockam vault list
by adding--output json
#6136 (redundant with issue 6135)Screenshots:
Checks