query stake-pools: add --output-[json,text] flag to control format of the output #617
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
Context
How to trust this PR
query stake-pools
before this PR (so no using the new flags): https://github.com/IntersectMBO/cardano-node/blob/smelc/test-cardano-cli-query-stake-pools-output-new/log.txtquery stake-pools
after this PR, when not using the new flags, so clunky defaults: https://github.com/IntersectMBO/cardano-node/blob/smelc/test-cardano-cli-query-stake-pools-output-new/log_new.txt. Note it's the same as item 1.query stake-pools
after this PR, when using all combinations of new flags: https://github.com/IntersectMBO/cardano-node/blob/smelc/test-cardano-cli-query-stake-pools-output-new/log_all_new_cases.txt Notice the behaviors are the expected ones for all combinations.Checklist