Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add -j option to print JSON format for cleos get currency balance. #7535

Merged
merged 1 commit into from
Jun 27, 2019
Merged

Add -j option to print JSON format for cleos get currency balance. #7535

merged 1 commit into from
Jun 27, 2019

Conversation

b1aafulei
Copy link
Contributor

@b1aafulei b1aafulei commented Jun 26, 2019

Change Description

Add support for -j, --json flag to cleos get currency balance, which, in Issue #7397, has been identified by @arhag as the only subcommand that requires such a change.

All changes are made within the main() function in programs/cleos/main.cpp. A bool variable named currency_balance_print_json is added, to get the flag value passed by the user. The code additions are consistent in style with the existing code, e.g. the part for get account.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

johndebord pushed a commit that referenced this pull request Jun 27, 2019
@arhag arhag merged commit 660337c into EOSIO:develop Jun 27, 2019
@b1aafulei b1aafulei deleted the aaron-fu-add-json branch January 10, 2020 07:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants