From de8b437368c5812080ed00472cd4d97cfdd91e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Thu, 13 Jun 2024 11:31:20 +0200 Subject: [PATCH] Adapt golden files --- .../cardano-cli-golden/files/golden/help.cli | 40 +++++++++---------- .../files/golden/help/conway.cli | 3 ++ .../files/golden/help/conway_governance.cli | 4 +- .../conway_governance_hash_anchor-data.cli | 16 -------- .../help/conway_governance_hash_script.cli | 9 ----- ...ay_governance_hash.cli => conway_hash.cli} | 9 ++--- .../golden/help/conway_hash_anchor-data.cli | 15 +++++++ .../files/golden/help/conway_hash_script.cli | 8 ++++ 8 files changed, 50 insertions(+), 54 deletions(-) delete mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_anchor-data.cli delete mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_script.cli rename cardano-cli/test/cardano-cli-golden/files/golden/help/{conway_governance_hash.cli => conway_hash.cli} (60%) create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_anchor-data.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_script.cli diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli index 1ed44f99c8..4c42526074 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -6404,6 +6404,7 @@ Usage: cardano-cli conway | key | genesis | governance + | hash | node | query | stake-address @@ -6673,7 +6674,7 @@ Usage: cardano-cli conway genesis hash --genesis FILE Compute the hash of a genesis file -Usage: cardano-cli conway governance (action | committee | drep | hash | vote) +Usage: cardano-cli conway governance (action | committee | drep | vote) Governance commands. @@ -7016,26 +7017,6 @@ Usage: cardano-cli conway governance drep metadata-hash --drep-metadata-file FIL Calculate the hash of a metadata file. -Usage: cardano-cli conway governance hash (anchor-data | script) - - Compute the hash to pass to the various --*-hash arguments of governance - commands. - -Usage: cardano-cli conway governance hash anchor-data - ( --text TEXT - | --file-binary FILE - | --file-text FILE - ) - [--out-file FILE] - - Compute the hash of some anchor data (to then pass it to other governance - commands). - -Usage: cardano-cli conway governance hash script --script-file FILE - [--out-file FILE] - - Compute the hash of a script (to then pass it to other governance commands). - Usage: cardano-cli conway governance vote (create | view) Vote commands. @@ -7067,6 +7048,23 @@ Usage: cardano-cli conway governance vote view [--output-json | --output-yaml] Vote viewing. +Usage: cardano-cli conway hash (anchor-data | script) + + Compute the hash to pass to the various --*-hash arguments of commands. + +Usage: cardano-cli conway hash anchor-data + ( --text TEXT + | --file-binary FILE + | --file-text FILE + ) + [--out-file FILE] + + Compute the hash of some anchor data (to then pass it to other commands). + +Usage: cardano-cli conway hash script --script-file FILE [--out-file FILE] + + Compute the hash of a script (to then pass it to other commands). + Usage: cardano-cli conway node ( key-gen | key-gen-KES diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway.cli index f648d0311c..a3cdde4caa 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway.cli @@ -3,6 +3,7 @@ Usage: cardano-cli conway | key | genesis | governance + | hash | node | query | stake-address @@ -21,6 +22,8 @@ Available commands: key Key utility commands. genesis Genesis block commands. governance Governance commands. + hash Compute the hash to pass to the various --*-hash + arguments of commands. node Node operation commands. query Node query commands. Will query the local node whose Unix domain socket is obtained from the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance.cli index b91133a932..b70383ce8a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance.cli @@ -1,4 +1,4 @@ -Usage: cardano-cli conway governance (action | committee | drep | hash | vote) +Usage: cardano-cli conway governance (action | committee | drep | vote) Governance commands. @@ -9,6 +9,4 @@ Available commands: action Governance action commands. committee Committee member commands. drep DRep member commands. - hash Compute the hash to pass to the various --*-hash - arguments of governance commands. vote Vote commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_anchor-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_anchor-data.cli deleted file mode 100644 index 9c04ea0f5a..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_anchor-data.cli +++ /dev/null @@ -1,16 +0,0 @@ -Usage: cardano-cli conway governance hash anchor-data - ( --text TEXT - | --file-binary FILE - | --file-text FILE - ) - [--out-file FILE] - - Compute the hash of some anchor data (to then pass it to other governance - commands). - -Available options: - --text TEXT Text to hash as UTF-8 - --file-binary FILE Binary file to hash - --file-text FILE Text file to hash - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_script.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_script.cli deleted file mode 100644 index 9ed3e296c3..0000000000 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash_script.cli +++ /dev/null @@ -1,9 +0,0 @@ -Usage: cardano-cli conway governance hash script --script-file FILE - [--out-file FILE] - - Compute the hash of a script (to then pass it to other governance commands). - -Available options: - --script-file FILE Filepath of the script. - --out-file FILE The output file. - -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash.cli similarity index 60% rename from cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash.cli rename to cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash.cli index 2582fb1680..5fa41c3fe4 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_hash.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash.cli @@ -1,13 +1,12 @@ -Usage: cardano-cli conway governance hash (anchor-data | script) +Usage: cardano-cli conway hash (anchor-data | script) - Compute the hash to pass to the various --*-hash arguments of governance - commands. + Compute the hash to pass to the various --*-hash arguments of commands. Available options: -h,--help Show this help text Available commands: anchor-data Compute the hash of some anchor data (to then pass it - to other governance commands). + to other commands). script Compute the hash of a script (to then pass it to - other governance commands). + other commands). diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_anchor-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_anchor-data.cli new file mode 100644 index 0000000000..304d660c3a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_anchor-data.cli @@ -0,0 +1,15 @@ +Usage: cardano-cli conway hash anchor-data + ( --text TEXT + | --file-binary FILE + | --file-text FILE + ) + [--out-file FILE] + + Compute the hash of some anchor data (to then pass it to other commands). + +Available options: + --text TEXT Text to hash as UTF-8 + --file-binary FILE Binary file to hash + --file-text FILE Text file to hash + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_script.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_script.cli new file mode 100644 index 0000000000..af8e808eb0 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_hash_script.cli @@ -0,0 +1,8 @@ +Usage: cardano-cli conway hash script --script-file FILE [--out-file FILE] + + Compute the hash of a script (to then pass it to other commands). + +Available options: + --script-file FILE Filepath of the script. + --out-file FILE The output file. + -h,--help Show this help text