-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: support json output in the boost wallet
command
#603
feat: support json output in the boost wallet
command
#603
Conversation
Errors are printed in plaintext rather than wrapped in a JSON (field "error"). I followed the same behavior as with the other commands. Current state of progress [final - PR ready for review]:
|
boost wallet
commandboost wallet
command
c2011a1
to
9a54a91
Compare
boost wallet
commandboost wallet
command
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 looks great 👍
I added a couple of minor suggestions, but over all LGTM 👍
Thanks for adding the output of each command, it helps a lot with reviewing 🙏
I think it would make more sense to print them out as JSON. Because probably when the |
I agree with you. I initially did it and then rolled back my changes to stay consistent with the behaviour of the other commands. I think it's better to fix this behaviour in a separate PR for all the commands. But I can do this in this PR. Whatever you prefer works for me! :) |
Makes sense, let's do it in a follow-up PR. |
9a54a91
to
34dc67e
Compare
I just pushed the suggested changes.
|
If it works for you and you merge it, I'll open a new PR for wrapping the errors in all the commands. |
This looks great, thanks! One more suggestion for the output:
|
34dc67e
to
5229df0
Compare
I implemented your suggested changes.
|
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.
Great work, thanks!
Relates to #469
List of commands (
boost --json wallet <command>
) to implement json support for:new
list
balance
export
import
default
/get-default
set-default
(no output on the first place)delete
(no output on the first place)