-
Notifications
You must be signed in to change notification settings - Fork 16
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
View vote file #303
View vote file #303
Conversation
drep-keyhash-eb09d5556a8bce421074e394d02c79ced96741657b4cf7ca8995294d: | ||
b1015258a99351c143a7a40b7b58f033ace10e3cc09c67780ed5b2b0992aa60a#5: | ||
anchor: null | ||
decision: VoteYes |
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 should output JSON
by default. I like the idea of supporting YAML
as an option.
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.
Should we drop the anchor
field if its value is missing?
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 should output
JSON
by default. I like the idea of supportingYAML
as an option.
Got it. I was taking inspiration from the cardano-cli * transaction view
commands, which output YAML
as well.
Should we drop the
anchor
field if its value is missing?
I'm not sure. My "role model" transaction view
commands don't. Dropping the field might make parsing the output back into types of suitable shapes harder for third parties.
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.
@newhoggy I've now added a --yaml
option to switch to YAML output. Without that, the output is JSON.
As this is my first PR here: how do we proceed to merging this? I'm unsure about the "commit sequence broadly makes sense" requirement -- what are your customs there? (I'd say the PR is simple enough to get squashed.)
In the Change log section of the PR description, mark |
f69a5aa
to
82558f9
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.
Nice, some changes needed.
cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Vote.hs
Outdated
Show resolved
Hide resolved
cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Vote.hs
Outdated
Show resolved
Hide resolved
bd000cd
to
d37be19
Compare
I think this is ready, barring the YAML issue. @Jimbo4350 did I understand you correctly yesterday that we'll keep the YAML option, and adapt the other commands that currently output only YAML to also output JSON by default, with a switch like the one on this command? |
d37be19
to
c8239ce
Compare
I rebased and updated for |
c8239ce
to
25fd1bb
Compare
Changelog
Context
This PR closes #11.
Checklist
See Running tests for more details
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7