Skip to content

Commit

Permalink
Adapt golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Oct 10, 2023
1 parent 86174b1 commit 77b483d
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 0 deletions.
44 changes: 44 additions & 0 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -8722,6 +8722,9 @@ Usage: cardano-cli legacy governance
( create-mir-certificate
| create-genesis-key-delegation-certificate
| create-update-proposal
| create-poll
| answer-poll
| verify-poll
)

Governance commands
Expand Down Expand Up @@ -8848,6 +8851,25 @@ Usage: cardano-cli legacy governance create-update-proposal --out-file FILE

Create an update proposal

Usage: cardano-cli legacy governance create-poll --question STRING
(--answer STRING)
[--nonce UINT]
--out-file FILE

Create an SPO poll

Usage: cardano-cli legacy governance answer-poll --poll-file FILE
[--answer INT]
[--out-file FILE]

Answer an SPO poll

Usage: cardano-cli legacy governance verify-poll --poll-file FILE
--tx-file FILE
[--out-file FILE]

Verify an answer to a given SPO poll

Usage: cardano-cli legacy genesis
( key-gen-genesis
| key-gen-delegate
Expand Down Expand Up @@ -10012,6 +10034,9 @@ Usage: cardano-cli governance
( create-mir-certificate
| create-genesis-key-delegation-certificate
| create-update-proposal
| create-poll
| answer-poll
| verify-poll
)

Governance commands
Expand Down Expand Up @@ -10138,6 +10163,25 @@ Usage: cardano-cli governance create-update-proposal --out-file FILE

Create an update proposal

Usage: cardano-cli governance create-poll --question STRING
(--answer STRING)
[--nonce UINT]
--out-file FILE

Create an SPO poll

Usage: cardano-cli governance answer-poll --poll-file FILE
[--answer INT]
[--out-file FILE]

Answer an SPO poll

Usage: cardano-cli governance verify-poll --poll-file FILE
--tx-file FILE
[--out-file FILE]

Verify an answer to a given SPO poll

Usage: cardano-cli genesis
( key-gen-genesis
| key-gen-delegate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Usage: cardano-cli governance
( create-mir-certificate
| create-genesis-key-delegation-certificate
| create-update-proposal
| create-poll
| answer-poll
| verify-poll
)

Governance commands
Expand All @@ -15,3 +18,6 @@ Available commands:
create-genesis-key-delegation-certificate
Create a genesis key delegation certificate
create-update-proposal Create an update proposal
create-poll Create an SPO poll
answer-poll Answer an SPO poll
verify-poll Verify an answer to a given SPO poll
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Usage: cardano-cli governance answer-poll --poll-file FILE
[--answer INT]
[--out-file FILE]

Answer an SPO poll

Available options:
--poll-file FILE Filepath to the ongoing poll.
--answer INT The index of the chosen answer in the poll. Optional.
Asked interactively if omitted.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Usage: cardano-cli governance create-poll --question STRING
(--answer STRING)
[--nonce UINT]
--out-file FILE

Create an SPO poll

Available options:
--question STRING The question for the poll.
--answer STRING A possible choice for the poll. The option is
repeatable.
--nonce UINT An (optional) nonce for non-replayability.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Usage: cardano-cli governance verify-poll --poll-file FILE
--tx-file FILE
[--out-file FILE]

Verify an answer to a given SPO poll

Available options:
--poll-file FILE Filepath to the ongoing poll.
--tx-file FILE Filepath to the JSON TxBody or JSON Tx carrying a
valid poll answer.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Usage: cardano-cli legacy governance
( create-mir-certificate
| create-genesis-key-delegation-certificate
| create-update-proposal
| create-poll
| answer-poll
| verify-poll
)

Governance commands
Expand All @@ -15,3 +18,6 @@ Available commands:
create-genesis-key-delegation-certificate
Create a genesis key delegation certificate
create-update-proposal Create an update proposal
create-poll Create an SPO poll
answer-poll Answer an SPO poll
verify-poll Verify an answer to a given SPO poll
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Usage: cardano-cli legacy governance answer-poll --poll-file FILE
[--answer INT]
[--out-file FILE]

Answer an SPO poll

Available options:
--poll-file FILE Filepath to the ongoing poll.
--answer INT The index of the chosen answer in the poll. Optional.
Asked interactively if omitted.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Usage: cardano-cli legacy governance create-poll --question STRING
(--answer STRING)
[--nonce UINT]
--out-file FILE

Create an SPO poll

Available options:
--question STRING The question for the poll.
--answer STRING A possible choice for the poll. The option is
repeatable.
--nonce UINT An (optional) nonce for non-replayability.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Usage: cardano-cli legacy governance verify-poll --poll-file FILE
--tx-file FILE
[--out-file FILE]

Verify an answer to a given SPO poll

Available options:
--poll-file FILE Filepath to the ongoing poll.
--tx-file FILE Filepath to the JSON TxBody or JSON Tx carrying a
valid poll answer.
--out-file FILE The output file.
-h,--help Show this help text

0 comments on commit 77b483d

Please sign in to comment.