diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs index 8d6b82168f..f649f06a4b 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands.hs @@ -88,67 +88,40 @@ pAnyEraCommand envCli = [ -- Note, byron is ommitted because there is already a legacy command group for it. subParser "shelley" - $ Opt.info (AnyEraCommandOf ShelleyBasedEraShelley <$> pCmds envCli ShelleyEra) + $ Opt.info (AnyEraCommandOf ShelleyBasedEraShelley <$> pCmds ShelleyEra envCli) $ Opt.progDesc "Shelley era commands" , subParser "allegra" - $ Opt.info (AnyEraCommandOf ShelleyBasedEraAllegra <$> pCmds envCli AllegraEra) + $ Opt.info (AnyEraCommandOf ShelleyBasedEraAllegra <$> pCmds AllegraEra envCli) $ Opt.progDesc "Allegra era commands" , subParser "mary" - $ Opt.info (AnyEraCommandOf ShelleyBasedEraMary <$> pCmds envCli MaryEra) + $ Opt.info (AnyEraCommandOf ShelleyBasedEraMary <$> pCmds MaryEra envCli) $ Opt.progDesc "Mary era commands" , subParser "alonzo" - $ Opt.info (AnyEraCommandOf ShelleyBasedEraAlonzo <$> pCmds envCli AlonzoEra) + $ Opt.info (AnyEraCommandOf ShelleyBasedEraAlonzo <$> pCmds AlonzoEra envCli) $ Opt.progDesc "Alonzo era commands" , subParser "babbage" - $ Opt.info (AnyEraCommandOf ShelleyBasedEraBabbage <$> pCmds envCli BabbageEra) + $ Opt.info (AnyEraCommandOf ShelleyBasedEraBabbage <$> pCmds BabbageEra envCli) $ Opt.progDesc "Babbage era commands" , subParser "conway" - $ Opt.info (AnyEraCommandOf ShelleyBasedEraConway <$> pCmds envCli ConwayEra) + $ Opt.info (AnyEraCommandOf ShelleyBasedEraConway <$> pCmds ConwayEra envCli) $ Opt.progDesc "Conway era commands" , subParser "latest" - $ Opt.info (AnyEraCommandOf ShelleyBasedEraBabbage <$> pCmds envCli BabbageEra) + $ Opt.info (AnyEraCommandOf ShelleyBasedEraBabbage <$> pCmds BabbageEra envCli) $ Opt.progDesc "Latest era commands (Babbage)" ] -pCmds :: EnvCli -> CardanoEra era -> Parser (Cmds era) -pCmds envCli era = +pCmds :: CardanoEra era -> EnvCli -> Parser (Cmds era) +pCmds era envCli = asum $ catMaybes - [ Just - $ subParser "address" - $ Opt.info (AddressCmds <$> pAddressCmds era envCli) - $ Opt.progDesc "Era-based address commands" - , Just - $ subParser "key" - $ Opt.info (KeyCmds <$> pKeyCmds) - $ Opt.progDesc "Era-based key commands" - , Just - $ subParser "genesis" - $ Opt.info (GenesisCmds <$> pGenesisCmds envCli) - $ Opt.progDesc "Era-based genesis commands" - , Just - $ subParser "governance" - $ Opt.info (GovernanceCmds <$> pGovernanceCmds envCli era) - $ Opt.progDesc "Era-based governance commands" - , Just - $ subParser "node" - $ Opt.info (NodeCmds <$> pNodeCmds) - $ Opt.progDesc "Era-based node commands" - , Just - $ subParser "query" - $ Opt.info (QueryCmds <$> pQueryCmds envCli) - $ Opt.progDesc "Era-based query commands" + [ fmap AddressCmds <$> pAddressCmds era envCli + , fmap KeyCmds <$> pKeyCmds + , fmap GenesisCmds <$> pGenesisCmds envCli + , fmap GovernanceCmds <$> pGovernanceCmds era envCli + , fmap NodeCmds <$> pNodeCmds + , fmap QueryCmds <$> pQueryCmds envCli , fmap StakeAddressCmds <$> pStakeAddressCmds era envCli - , Just - $ subParser "stake-pool" - $ Opt.info (StakePoolCmds <$> pStakePoolCmds era envCli) - $ Opt.progDesc "Era-based stake pool commands" - , Just - $ subParser "text-view" - $ Opt.info (TextViewCmds <$> pTextViewCmds) - $ Opt.progDesc "Era-based text view commands" - , Just - $ subParser "transaction" - $ Opt.info (TransactionCmds <$> pTransactionCmds envCli era) - $ Opt.progDesc "Era-based transaction commands" + , fmap StakePoolCmds <$> pStakePoolCmds era envCli + , fmap TextViewCmds <$> pTextViewCmds + , fmap TransactionCmds <$> pTransactionCmds era envCli ] diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Address.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Address.hs index 493d227447..c4922732fe 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Address.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Address.hs @@ -13,23 +13,34 @@ import Cardano.CLI.Environment (EnvCli (..)) import Cardano.CLI.EraBased.Commands.Address import Cardano.CLI.EraBased.Options.Common -import Data.Foldable import Options.Applicative hiding (help, str) import qualified Options.Applicative as Opt -pAddressCmds :: CardanoEra era -> EnvCli -> Parser (AddressCmds era) +pAddressCmds :: () + => CardanoEra era + -> EnvCli + -> Maybe (Parser (AddressCmds era)) pAddressCmds _ envCli = - asum - [ subParser "key-gen" + subInfoParser "address" + ( Opt.progDesc + $ mconcat + [ "Payment address commands." + ] + ) + [ Just + $ subParser "key-gen" $ Opt.info pAddressKeyGen $ Opt.progDesc "Create an address key pair." - , subParser "key-hash" + , Just + $ subParser "key-hash" $ Opt.info pAddressKeyHash $ Opt.progDesc "Print the hash of an address key." - , subParser "build" + , Just + $ subParser "build" $ Opt.info (pAddressBuild envCli) $ Opt.progDesc "Build a Shelley payment address, with optional delegation to a stake address." - , subParser "info" + , Just + $ subParser "info" $ Opt.info pAddressInfo $ Opt.progDesc "Print information about an address." ] diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs index ad8aaebac8..a3686ccd9a 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs @@ -16,8 +16,7 @@ import Cardano.CLI.EraBased.Options.Common import Cardano.CLI.Parser import Cardano.CLI.Types.Common -import Data.Foldable -import Data.Maybe (fromMaybe) +import Data.Maybe import Data.Word (Word64) import Options.Applicative hiding (help, str) import qualified Options.Applicative as Opt @@ -25,52 +24,70 @@ import qualified Options.Applicative as Opt {- HLINT ignore "Use <$>" -} {- HLINT ignore "Move brackets to avoid $" -} -pGenesisCmds :: EnvCli -> Parser (GenesisCmds era) +pGenesisCmds :: () + => EnvCli + -> Maybe (Parser (GenesisCmds era)) pGenesisCmds envCli = - asum - [ subParser "key-gen-genesis" + subInfoParser "genesis" + ( Opt.progDesc + $ mconcat + [ "Genesis block commands." + ] + ) + [ Just + $ subParser "key-gen-genesis" $ Opt.info pGenesisKeyGen $ Opt.progDesc "Create a Shelley genesis key pair" - , subParser "key-gen-delegate" + , Just + $ subParser "key-gen-delegate" $ Opt.info pGenesisDelegateKeyGen $ Opt.progDesc "Create a Shelley genesis delegate key pair" - , subParser "key-gen-utxo" + , Just + $ subParser "key-gen-utxo" $ Opt.info pGenesisUTxOKeyGen $ Opt.progDesc "Create a Shelley genesis UTxO key pair" - , subParser "key-hash" + , Just + $ subParser "key-hash" $ Opt.info pGenesisKeyHash $ Opt.progDesc "Print the identifier (hash) of a public key" - , subParser "get-ver-key" + , Just + $ subParser "get-ver-key" $ Opt.info pGenesisVerKey $ Opt.progDesc "Derive the verification key from a signing key" - , subParser "initial-addr" + , Just + $ subParser "initial-addr" $ Opt.info (pGenesisAddr envCli) $ Opt.progDesc "Get the address for an initial UTxO based on the verification key" - , subParser "initial-txin" + , Just + $ subParser "initial-txin" $ Opt.info (pGenesisTxIn envCli) $ Opt.progDesc "Get the TxIn for an initial UTxO based on the verification key" - , subParser "create-cardano" + , Just + $ subParser "create-cardano" $ Opt.info (pGenesisCreateCardano envCli) $ Opt.progDesc $ mconcat [ "Create a Byron and Shelley genesis file from a genesis " , "template and genesis/delegation/spending keys." ] - , subParser "create" + , Just + $ subParser "create" $ Opt.info (pGenesisCreate envCli) $ Opt.progDesc $ mconcat [ "Create a Shelley genesis file from a genesis " , "template and genesis/delegation/spending keys." ] - , subParser "create-staked" + , Just + $ subParser "create-staked" $ Opt.info (pGenesisCreateStaked envCli) $ Opt.progDesc $ mconcat [ "Create a staked Shelley genesis file from a genesis " , "template and genesis/delegation/spending keys." ] - , subParser "hash" + , Just + $ subParser "hash" $ Opt.info pGenesisHash $ Opt.progDesc "Compute the hash of a genesis file" ] diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs index 0fefd5e5d9..2f9b1aeb9d 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance.hs @@ -20,18 +20,25 @@ import Cardano.CLI.EraBased.Options.Governance.Vote import Cardano.CLI.Types.Common import Data.Foldable -import Data.Maybe import Options.Applicative import qualified Options.Applicative as Opt -pGovernanceCmds :: EnvCli -> CardanoEra era -> Parser (GovernanceCmds era) -pGovernanceCmds envCli era = - asum $ catMaybes +pGovernanceCmds :: () + => CardanoEra era + -> EnvCli + -> Maybe (Parser (GovernanceCmds era)) +pGovernanceCmds era envCli = + subInfoParser "governance" + ( Opt.progDesc + $ mconcat + [ "Governance commands." + ] + ) [ pCreateMirCertificatesCmds era - , fmap GovernanceQueryCmds <$> pGovernanceQueryCmds envCli era + , fmap GovernanceQueryCmds <$> pGovernanceQueryCmds era envCli , fmap GovernanceActionCmds <$> pGovernanceActionCmds era , fmap GovernanceCommitteeCmds <$> pGovernanceCommitteeCmds era - , fmap GovernanceDRepCmds <$> pGovernanceDRepCmds envCli era + , fmap GovernanceDRepCmds <$> pGovernanceDRepCmds era envCli , fmap GovernanceVoteCmds <$> pGovernanceVoteCmds era ] diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs index 455aa47886..24301da729 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs @@ -24,10 +24,10 @@ import Options.Applicative (Parser) import qualified Options.Applicative as Opt pGovernanceDRepCmds :: () - => EnvCli - -> CardanoEra era + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceDRepCmds era)) -pGovernanceDRepCmds envCli era = +pGovernanceDRepCmds era envCli = subInfoParser "drep" ( Opt.progDesc $ mconcat @@ -36,7 +36,7 @@ pGovernanceDRepCmds envCli era = ) [ pGovernanceDRepKeyGenCmd era , pGovernanceDRepKeyIdCmd era - , pRegistrationCertificateCmd envCli era + , pRegistrationCertificateCmd era envCli ] pGovernanceDRepKeyGenCmd :: () @@ -83,10 +83,10 @@ pDRepIdOutputFormat = -- Registration Certificate related pRegistrationCertificateCmd :: () - => EnvCli - -> CardanoEra era + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceDRepCmds era)) -pRegistrationCertificateCmd envCli era = do +pRegistrationCertificateCmd era envCli = do w <- maybeFeatureInEra era pure $ subParser "registration-certificate" diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Query.hs index cc28b1229d..23d11636e1 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Query.hs @@ -14,37 +14,36 @@ import Cardano.CLI.EraBased.Options.Common import Options.Applicative import qualified Options.Applicative as Opt -pGovernanceQueryCmds - :: () - => EnvCli - -> CardanoEra era +pGovernanceQueryCmds :: () + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceQueryCmds era)) -pGovernanceQueryCmds env era = +pGovernanceQueryCmds era env = subInfoParser "query" ( Opt.progDesc "Query governance-related information" ) - [ pGovernanceQueryGetConstitutionCmd env era - , pGovernanceQueryGetGovStateCmd env era - , pGovernanceQueryDRepStateCmd env era - , pGovernanceQueryDRepStakeDistributionCmd env era - , pGovernanceQueryGetCommitteeStateCmd env era + [ pGovernanceQueryGetConstitutionCmd era env + , pGovernanceQueryGetGovStateCmd era env + , pGovernanceQueryDRepStateCmd era env + , pGovernanceQueryDRepStakeDistributionCmd era env + , pGovernanceQueryGetCommitteeStateCmd era env ] -pGovernanceQueryGetConstitutionCmd - :: EnvCli - -> CardanoEra era +pGovernanceQueryGetConstitutionCmd :: () + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceQueryCmds era)) -pGovernanceQueryGetConstitutionCmd env era = do +pGovernanceQueryGetConstitutionCmd era env = do cOn <- maybeFeatureInEra era pure $ subParser "constitution" $ Opt.info (GovernanceQueryConstitutionCmd cOn <$> pNoArgQueryCmd env) $ Opt.progDesc "Get the constitution" -pGovernanceQueryGetGovStateCmd - :: EnvCli - -> CardanoEra era +pGovernanceQueryGetGovStateCmd :: () + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceQueryCmds era)) -pGovernanceQueryGetGovStateCmd env era = do +pGovernanceQueryGetGovStateCmd era env = do cOn <- maybeFeatureInEra era pure $ subParser "gov-state" @@ -56,11 +55,11 @@ pGovernanceQueryGetGovStateCmd env era = do -- What about 'DRep c' - this means that only 'KeyHash' constructor is in use here: should also -- 'DRepAlwaysAbstain' and 'DRepAlwaysNoConfidence' be supported here? -pGovernanceQueryDRepStateCmd - :: EnvCli - -> CardanoEra era +pGovernanceQueryDRepStateCmd :: () + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceQueryCmds era)) -pGovernanceQueryDRepStateCmd env era = do +pGovernanceQueryDRepStateCmd era env = do cOn <- maybeFeatureInEra era pure $ subParser "drep-state" @@ -75,11 +74,11 @@ pGovernanceQueryDRepStateCmd env era = do <*> some pDRepVerificationKeyOrHashOrFile <*> optional pOutputFile -pGovernanceQueryDRepStakeDistributionCmd - :: EnvCli - -> CardanoEra era +pGovernanceQueryDRepStakeDistributionCmd :: () + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceQueryCmds era)) -pGovernanceQueryDRepStakeDistributionCmd env era = do +pGovernanceQueryDRepStakeDistributionCmd era env = do cOn <- maybeFeatureInEra era pure $ subParser "drep-stake-distribution" @@ -94,11 +93,11 @@ pGovernanceQueryDRepStakeDistributionCmd env era = do <*> some pDRepVerificationKeyOrHashOrFile <*> optional pOutputFile -pGovernanceQueryGetCommitteeStateCmd - :: EnvCli - -> CardanoEra era +pGovernanceQueryGetCommitteeStateCmd :: () + => CardanoEra era + -> EnvCli -> Maybe (Parser (GovernanceQueryCmds era)) -pGovernanceQueryGetCommitteeStateCmd env era = do +pGovernanceQueryGetCommitteeStateCmd era env = do cOn <- maybeFeatureInEra era pure $ subParser "committee-state" diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Key.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Key.hs index a0942ad6ff..306e46d23b 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Key.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Key.hs @@ -21,17 +21,24 @@ import qualified Options.Applicative as Opt {- HLINT ignore "Use <$>" -} {- HLINT ignore "Move brackets to avoid $" -} -pKeyCmds :: Parser (KeyCmds era) +pKeyCmds :: Maybe (Parser (KeyCmds era)) pKeyCmds = - asum - [ subParser "verification-key" + subInfoParser "key" + ( Opt.progDesc + $ mconcat + [ "Key utility commands." + ] + ) + [ Just + $ subParser "verification-key" $ Opt.info pKeyGetVerificationKey $ Opt.progDesc $ mconcat [ "Get a verification key from a signing key. This " , " supports all key types." ] - , subParser "non-extended-key" + , Just + $ subParser "non-extended-key" $ Opt.info pKeyNonExtendedKey $ Opt.progDesc $ mconcat @@ -39,7 +46,8 @@ pKeyCmds = , "extended verification key. This supports all " , "extended key types." ] - , subParser "convert-byron-key" + , Just + $ subParser "convert-byron-key" $ Opt.info pKeyConvertByronKey $ Opt.progDesc $ mconcat @@ -47,7 +55,8 @@ pKeyCmds = , "delegate key (signing or verification) to a " , "corresponding Shelley-format key." ] - , subParser "convert-byron-genesis-vkey" + , Just + $ subParser "convert-byron-genesis-vkey" $ Opt.info pKeyConvertByronGenesisVKey $ Opt.progDesc $ mconcat @@ -55,7 +64,8 @@ pKeyCmds = , "verification key to a Shelley genesis " , "verification key" ] - , subParser "convert-itn-key" + , Just + $ subParser "convert-itn-key" $ Opt.info pKeyConvertITNKey $ Opt.progDesc $ mconcat @@ -63,7 +73,8 @@ pKeyCmds = , "(Ed25519) signing or verification key to a " , "corresponding Shelley stake key" ] - , subParser "convert-itn-extended-key" + , Just + $ subParser "convert-itn-extended-key" $ Opt.info pKeyConvertITNExtendedKey $ Opt.progDesc $ mconcat @@ -71,7 +82,8 @@ pKeyCmds = , "(Ed25519Extended) signing key to a corresponding " , "Shelley stake signing key" ] - , subParser "convert-itn-bip32-key" + , Just + $ subParser "convert-itn-bip32-key" $ Opt.info pKeyConvertITNBip32Key $ Opt.progDesc $ mconcat @@ -79,7 +91,8 @@ pKeyCmds = , "(Ed25519Bip32) signing key to a corresponding " , "Shelley stake signing key" ] - , subParser "convert-cardano-address-key" + , Just + $ subParser "convert-cardano-address-key" $ Opt.info pKeyConvertCardanoAddressSigningKey $ Opt.progDesc $ mconcat diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Node.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Node.hs index 41b86d3543..b691b5d89b 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Node.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Node.hs @@ -12,35 +12,61 @@ import Cardano.Api hiding (QueryInShelleyBasedEra (..)) import Cardano.CLI.EraBased.Commands.Node import Cardano.CLI.EraBased.Options.Common -import Data.Foldable import Options.Applicative hiding (help, str) import qualified Options.Applicative as Opt {- HLINT ignore "Use <$>" -} {- HLINT ignore "Move brackets to avoid $" -} -pNodeCmds :: Parser (NodeCmds era) +pNodeCmds :: Maybe (Parser (NodeCmds era)) pNodeCmds = - asum - [ subParser "key-gen" . Opt.info pKeyGenOperator . Opt.progDesc $ mconcat - [ "Create a key pair for a node operator's offline " - , "key and a new certificate issue counter" - ] - , subParser "key-gen-KES" . Opt.info pKeyGenKES . Opt.progDesc $ mconcat - [ "Create a key pair for a node KES operational key" - ] - , subParser "key-gen-VRF" . Opt.info pKeyGenVRF . Opt.progDesc $ mconcat - [ "Create a key pair for a node VRF operational key" - ] - , subParser "key-hash-VRF". Opt.info pKeyHashVRF . Opt.progDesc $ mconcat - [ "Print hash of a node's operational VRF key." - ] - , subParser "new-counter" . Opt.info pNewCounter . Opt.progDesc $ mconcat - [ "Create a new certificate issue counter" - ] - , subParser "issue-op-cert" . Opt.info pIssueOpCert . Opt.progDesc $ mconcat - [ "Issue a node operational certificate" - ] + subInfoParser "node" + ( Opt.progDesc + $ mconcat + [ "Node operation commands." + ] + ) + [ Just + $ subParser "key-gen" + $ Opt.info pKeyGenOperator + $ Opt.progDesc $ mconcat + [ "Create a key pair for a node operator's offline " + , "key and a new certificate issue counter" + ] + , Just + $ subParser "key-gen-KES" + $ Opt.info pKeyGenKES + $ Opt.progDesc + $ mconcat + [ "Create a key pair for a node KES operational key" + ] + , Just + $ subParser "key-gen-VRF" + $ Opt.info pKeyGenVRF + $ Opt.progDesc + $ mconcat + [ "Create a key pair for a node VRF operational key" + ] + , Just + $ subParser "key-hash-VRF". Opt.info pKeyHashVRF + $ Opt.progDesc + $ mconcat + [ "Print hash of a node's operational VRF key." + ] + , Just + $ subParser "new-counter" + $ Opt.info pNewCounter + $ Opt.progDesc + $ mconcat + [ "Create a new certificate issue counter" + ] + , Just + $ subParser "issue-op-cert" + $ Opt.info pIssueOpCert + $ Opt.progDesc + $ mconcat + [ "Issue a node operational certificate" + ] ] pKeyGenOperator :: Parser (NodeCmds era) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs index e550aa35b7..e556f26843 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs @@ -22,68 +22,92 @@ import qualified Options.Applicative as Opt {- HLINT ignore "Use <$>" -} {- HLINT ignore "Move brackets to avoid $" -} -pQueryCmds :: EnvCli -> Parser (QueryCmds era) +pQueryCmds :: () + => EnvCli + -> Maybe (Parser (QueryCmds era)) pQueryCmds envCli = - asum - [ subParser "protocol-parameters" + subInfoParser "query" + ( Opt.progDesc + $ mconcat + [ "Node query commands. Will query the local node whose Unix domain socket is " + , "obtained from the CARDANO_NODE_SOCKET_PATH environment variable." + ] + ) + [ Just + $ subParser "protocol-parameters" $ Opt.info (pQueryProtocolParameters envCli) $ Opt.progDesc "Get the node's current protocol parameters" - , subParser "constitution-hash" + , Just + $ subParser "constitution-hash" $ Opt.info (pQueryConstitutionHash envCli) $ Opt.progDesc "Get the constitution hash" - , subParser "tip" + , Just + $ subParser "tip" $ Opt.info (pQueryTip envCli) $ Opt.progDesc "Get the node's current tip (slot no, hash, block no)" - , subParser "stake-pools" + , Just + $ subParser "stake-pools" $ Opt.info (pQueryStakePools envCli) $ Opt.progDesc "Get the node's current set of stake pool ids" - , subParser "stake-distribution" + , Just + $ subParser "stake-distribution" $ Opt.info (pQueryStakeDistribution envCli) $ Opt.progDesc "Get the node's current aggregated stake distribution" - , subParser "stake-address-info" + , Just + $ subParser "stake-address-info" $ Opt.info (pQueryStakeAddressInfo envCli) $ Opt.progDesc $ mconcat [ "Get the current delegations and reward accounts filtered by stake address." ] - , subParser "utxo" + , Just + $ subParser "utxo" $ Opt.info (pQueryUTxO envCli) $ Opt.progDesc $ mconcat [ "Get a portion of the current UTxO: by tx in, by address or the whole." ] - , subParser "ledger-state" + , Just + $ subParser "ledger-state" $ Opt.info (pQueryLedgerState envCli) $ Opt.progDesc $ mconcat [ "Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command)" ] - , subParser "protocol-state" + , Just + $ subParser "protocol-state" $ Opt.info (pQueryProtocolState envCli) $ Opt.progDesc $ mconcat [ "Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command)" ] - , subParser "stake-snapshot" + , Just + $ subParser "stake-snapshot" $ Opt.info (pQueryStakeSnapshot envCli) $ Opt.progDesc $ mconcat [ "Obtain the three stake snapshots for a pool, plus the total active stake (advanced command)" ] - , hiddenSubParser "pool-params" + , Just + $ hiddenSubParser "pool-params" $ Opt.info (pQueryPoolState envCli) $ Opt.progDesc $ mconcat [ "DEPRECATED. Use query pool-state instead. Dump the pool parameters " , "(Ledger.NewEpochState.esLState._delegationState._pState._pParams -- advanced command)" ] - , subParser "leadership-schedule" + , Just + $ subParser "leadership-schedule" $ Opt.info (pLeadershipSchedule envCli) $ Opt.progDesc "Get the slots the node is expected to mint a block in (advanced command)" - , subParser "kes-period-info" + , Just + $ subParser "kes-period-info" $ Opt.info (pKesPeriodInfo envCli) $ Opt.progDesc "Get information about the current KES period and your node's operational certificate." - , subParser "pool-state" + , Just + $ subParser "pool-state" $ Opt.info (pQueryPoolState envCli) $ Opt.progDesc "Dump the pool state" - , subParser "tx-mempool" + , Just + $ subParser "tx-mempool" $ Opt.info (pQueryTxMempool envCli) $ Opt.progDesc "Local Mempool info" - , subParser "slot-number" + , Just + $ subParser "slot-number" $ Opt.info (pQuerySlotNumber envCli) $ Opt.progDesc "Query slot number for UTC timestamp" ] diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/StakePool.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/StakePool.hs index 8d29e39827..2adb44b69a 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/StakePool.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/StakePool.hs @@ -13,17 +13,23 @@ import Cardano.CLI.Environment (EnvCli (..)) import Cardano.CLI.EraBased.Commands.StakePool import Cardano.CLI.EraBased.Options.Common -import Data.Foldable -import Data.Maybe import Options.Applicative hiding (help, str) import qualified Options.Applicative as Opt {- HLINT ignore "Use <$>" -} {- HLINT ignore "Move brackets to avoid $" -} -pStakePoolCmds :: CardanoEra era -> EnvCli -> Parser (StakePoolCmds era) +pStakePoolCmds :: () + => CardanoEra era + -> EnvCli + -> Maybe (Parser (StakePoolCmds era)) pStakePoolCmds era envCli = - asum $ catMaybes + subInfoParser "stake-pool" + ( Opt.progDesc + $ mconcat + [ "Stake pool commands." + ] + ) [ pStakePoolRegistrationCertificateCmd era envCli , pStakePoolDeregistrationCertificateCmd era , Just diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/TextView.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/TextView.hs index e1e4cc1c81..386ad63819 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/TextView.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/TextView.hs @@ -10,17 +10,23 @@ module Cardano.CLI.EraBased.Options.TextView import Cardano.CLI.EraBased.Commands.TextView import Cardano.CLI.EraBased.Options.Common -import Data.Foldable import Options.Applicative hiding (help, str) import qualified Options.Applicative as Opt {- HLINT ignore "Use <$>" -} {- HLINT ignore "Move brackets to avoid $" -} -pTextViewCmds :: Parser (TextViewCmds era) +pTextViewCmds :: Maybe (Parser (TextViewCmds era)) pTextViewCmds = - asum - [ subParser "decode-cbor" + subInfoParser "text-view" + ( Opt.progDesc + $ mconcat + [ "Commands for dealing with Shelley TextView files. Transactions, addresses etc " + , "are stored on disk as TextView files." + ] + ) + [ Just + $ subParser "decode-cbor" $ Opt.info (TextViewInfo <$> pCBORInFile <*> pMaybeOutputFile) $ Opt.progDesc "Print a TextView file as decoded CBOR." ] diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs index 5a7ce86050..0bc6f5a84c 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs @@ -24,10 +24,19 @@ import Prettyprinter (line, pretty) {- HLINT ignore "Use <$>" -} {- HLINT ignore "Move brackets to avoid $" -} -pTransactionCmds :: EnvCli -> CardanoEra era -> Parser (TransactionCmds era) -pTransactionCmds envCli era = - asum - [ subParser "build-raw" +pTransactionCmds :: () + => CardanoEra era + -> EnvCli + -> Maybe (Parser (TransactionCmds era)) +pTransactionCmds era envCli = + subInfoParser "transaction" + ( Opt.progDesc + $ mconcat + [ "Transaction commands." + ] + ) + [ Just + $ subParser "build-raw" $ Opt.info (pTransactionBuildRaw era) $ Opt.progDescDoc $ Just $ mconcat @@ -39,8 +48,9 @@ pTransactionCmds envCli era = , "undesired tx body. See nested [] notation above for details." ] ] - , subParser "build" - $ Opt.info (pTransactionBuild envCli era) + , Just + $ subParser "build" + $ Opt.info (pTransactionBuild era envCli) $ Opt.progDescDoc $ Just $ mconcat [ pretty @String "Build a balanced transaction (automatically calculates fees)" @@ -53,40 +63,51 @@ pTransactionCmds envCli era = , "undesired tx body. See nested [] notation above for details." ] ] - , subParser "sign" + , Just + $ subParser "sign" $ Opt.info (pTransactionSign envCli) $ Opt.progDesc "Sign a transaction" - , subParser "witness" + , Just + $ subParser "witness" $ Opt.info (pTransactionCreateWitness envCli) $ Opt.progDesc "Create a transaction witness" - , subParser "assemble" + , Just + $ subParser "assemble" $ Opt.info pTransactionAssembleTxBodyWit $ Opt.progDesc "Assemble a tx body and witness(es) to form a transaction" - , pSignWitnessBackwardCompatible - , subParser "submit" + , Just pSignWitnessBackwardCompatible + , Just + $ subParser "submit" $ Opt.info (pTransactionSubmit envCli) $ Opt.progDesc $ mconcat [ "Submit a transaction to the local node whose Unix domain socket " , "is obtained from the CARDANO_NODE_SOCKET_PATH environment variable." ] - , subParser "policyid" + , Just + $ subParser "policyid" $ Opt.info pTransactionPolicyId $ Opt.progDesc "Calculate the PolicyId from the monetary policy script." - , subParser "calculate-min-fee" + , Just + $ subParser "calculate-min-fee" $ Opt.info (pTransactionCalculateMinFee envCli) $ Opt.progDesc "Calculate the minimum fee for a transaction." - , subParser "calculate-min-required-utxo" + , Just + $ subParser "calculate-min-required-utxo" $ Opt.info (pTransactionCalculateMinReqUTxO era) $ Opt.progDesc "Calculate the minimum required UTxO for a transaction output." - , pCalculateMinRequiredUtxoBackwardCompatible era - , subParser "hash-script-data" + , Just + $ pCalculateMinRequiredUtxoBackwardCompatible era + , Just + $ subParser "hash-script-data" $ Opt.info pTxHashScriptData $ Opt.progDesc "Calculate the hash of script data." - , subParser "txid" + , Just + $ subParser "txid" $ Opt.info pTransactionId $ Opt.progDesc "Print a transaction identifier." - , subParser "view" + , Just + $ subParser "view" $ Opt.info pTransactionView $ Opt.progDesc "Print a transaction." ] @@ -128,8 +149,8 @@ pScriptValidity = asum ] ] -pTransactionBuild :: EnvCli -> CardanoEra era -> Parser (TransactionCmds era) -pTransactionBuild envCli era = +pTransactionBuild :: CardanoEra era -> EnvCli -> Parser (TransactionCmds era) +pTransactionBuild era envCli = TxBuild era <$> pSocketPath envCli <*> pConsensusModeParams diff --git a/cardano-cli/src/Cardano/CLI/Options.hs b/cardano-cli/src/Cardano/CLI/Options.hs index 3de0e632d8..48b901ceac 100644 --- a/cardano-cli/src/Cardano/CLI/Options.hs +++ b/cardano-cli/src/Cardano/CLI/Options.hs @@ -82,7 +82,7 @@ parseLegacy envCli = _parseTopLevelLatest :: EnvCli -> Parser ClientCommand _parseTopLevelLatest envCli = - AnyEraCommand . AnyEraCommandOf ShelleyBasedEraBabbage <$> pCmds envCli BabbageEra + AnyEraCommand . AnyEraCommandOf ShelleyBasedEraBabbage <$> pCmds BabbageEra envCli -- | Parse Legacy commands at the top level of the CLI. parseTopLevelLegacy :: EnvCli -> Parser ClientCommand 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 2da7ecb17d..3ac26141bb 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -30,7 +30,7 @@ Usage: cardano-cli shelley Usage: cardano-cli shelley address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Usage: cardano-cli shelley address key-gen [--key-output-format STRING] [ --normal-key @@ -80,7 +80,7 @@ Usage: cardano-cli shelley key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Usage: cardano-cli shelley key verification-key --signing-key-file FILE --verification-key-file FILE @@ -162,7 +162,7 @@ Usage: cardano-cli shelley genesis | hash ) - Era-based genesis commands + Genesis block commands. Usage: cardano-cli shelley genesis key-gen-genesis --verification-key-file FILE --signing-key-file FILE @@ -264,7 +264,7 @@ Usage: cardano-cli shelley genesis hash --genesis FILE Usage: cardano-cli shelley governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Usage: cardano-cli shelley governance create-mir-certificate ( ( --reserves @@ -382,7 +382,7 @@ Usage: cardano-cli shelley node | issue-op-cert ) - Era-based node commands + Node operation commands. Usage: cardano-cli shelley node key-gen [--key-output-format STRING] --cold-verification-key-file FILE @@ -451,7 +451,8 @@ Usage: cardano-cli shelley query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Usage: cardano-cli shelley query protocol-parameters --socket-path SOCKET_PATH [ --shelley-mode @@ -786,7 +787,7 @@ Usage: cardano-cli shelley stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Usage: cardano-cli shelley stake-pool registration-certificate ( --stake-pool-verification-key STRING @@ -845,7 +846,8 @@ Usage: cardano-cli shelley stake-pool metadata-hash --pool-metadata-file FILE Usage: cardano-cli shelley text-view decode-cbor - Era-based text view commands + Commands for dealing with Shelley TextView files. Transactions, addresses etc + are stored on disk as TextView files. Usage: cardano-cli shelley text-view decode-cbor --in-file FILE [--out-file FILE] @@ -867,7 +869,7 @@ Usage: cardano-cli shelley transaction | view ) - Era-based transaction commands + Transaction commands. Usage: cardano-cli shelley transaction build-raw [ --script-valid @@ -1252,7 +1254,7 @@ Usage: cardano-cli allegra Usage: cardano-cli allegra address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Usage: cardano-cli allegra address key-gen [--key-output-format STRING] [ --normal-key @@ -1302,7 +1304,7 @@ Usage: cardano-cli allegra key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Usage: cardano-cli allegra key verification-key --signing-key-file FILE --verification-key-file FILE @@ -1384,7 +1386,7 @@ Usage: cardano-cli allegra genesis | hash ) - Era-based genesis commands + Genesis block commands. Usage: cardano-cli allegra genesis key-gen-genesis --verification-key-file FILE --signing-key-file FILE @@ -1486,7 +1488,7 @@ Usage: cardano-cli allegra genesis hash --genesis FILE Usage: cardano-cli allegra governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Usage: cardano-cli allegra governance create-mir-certificate ( ( --reserves @@ -1604,7 +1606,7 @@ Usage: cardano-cli allegra node | issue-op-cert ) - Era-based node commands + Node operation commands. Usage: cardano-cli allegra node key-gen [--key-output-format STRING] --cold-verification-key-file FILE @@ -1673,7 +1675,8 @@ Usage: cardano-cli allegra query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Usage: cardano-cli allegra query protocol-parameters --socket-path SOCKET_PATH [ --shelley-mode @@ -2008,7 +2011,7 @@ Usage: cardano-cli allegra stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Usage: cardano-cli allegra stake-pool registration-certificate ( --stake-pool-verification-key STRING @@ -2067,7 +2070,8 @@ Usage: cardano-cli allegra stake-pool metadata-hash --pool-metadata-file FILE Usage: cardano-cli allegra text-view decode-cbor - Era-based text view commands + Commands for dealing with Shelley TextView files. Transactions, addresses etc + are stored on disk as TextView files. Usage: cardano-cli allegra text-view decode-cbor --in-file FILE [--out-file FILE] @@ -2089,7 +2093,7 @@ Usage: cardano-cli allegra transaction | view ) - Era-based transaction commands + Transaction commands. Usage: cardano-cli allegra transaction build-raw [ --script-valid @@ -2474,7 +2478,7 @@ Usage: cardano-cli mary Usage: cardano-cli mary address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Usage: cardano-cli mary address key-gen [--key-output-format STRING] [ --normal-key @@ -2524,7 +2528,7 @@ Usage: cardano-cli mary key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Usage: cardano-cli mary key verification-key --signing-key-file FILE --verification-key-file FILE @@ -2606,7 +2610,7 @@ Usage: cardano-cli mary genesis | hash ) - Era-based genesis commands + Genesis block commands. Usage: cardano-cli mary genesis key-gen-genesis --verification-key-file FILE --signing-key-file FILE @@ -2706,7 +2710,7 @@ Usage: cardano-cli mary genesis hash --genesis FILE Usage: cardano-cli mary governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Usage: cardano-cli mary governance create-mir-certificate ( ( --reserves @@ -2824,7 +2828,7 @@ Usage: cardano-cli mary node | issue-op-cert ) - Era-based node commands + Node operation commands. Usage: cardano-cli mary node key-gen [--key-output-format STRING] --cold-verification-key-file FILE @@ -2893,7 +2897,8 @@ Usage: cardano-cli mary query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Usage: cardano-cli mary query protocol-parameters --socket-path SOCKET_PATH [ --shelley-mode @@ -3218,7 +3223,7 @@ Usage: cardano-cli mary stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Usage: cardano-cli mary stake-pool registration-certificate ( --stake-pool-verification-key STRING @@ -3277,7 +3282,8 @@ Usage: cardano-cli mary stake-pool metadata-hash --pool-metadata-file FILE Usage: cardano-cli mary text-view decode-cbor - Era-based text view commands + Commands for dealing with Shelley TextView files. Transactions, addresses etc + are stored on disk as TextView files. Usage: cardano-cli mary text-view decode-cbor --in-file FILE [--out-file FILE] @@ -3298,7 +3304,7 @@ Usage: cardano-cli mary transaction | view ) - Era-based transaction commands + Transaction commands. Usage: cardano-cli mary transaction build-raw [ --script-valid @@ -3668,7 +3674,7 @@ Usage: cardano-cli alonzo Usage: cardano-cli alonzo address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Usage: cardano-cli alonzo address key-gen [--key-output-format STRING] [ --normal-key @@ -3718,7 +3724,7 @@ Usage: cardano-cli alonzo key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Usage: cardano-cli alonzo key verification-key --signing-key-file FILE --verification-key-file FILE @@ -3800,7 +3806,7 @@ Usage: cardano-cli alonzo genesis | hash ) - Era-based genesis commands + Genesis block commands. Usage: cardano-cli alonzo genesis key-gen-genesis --verification-key-file FILE --signing-key-file FILE @@ -3900,7 +3906,7 @@ Usage: cardano-cli alonzo genesis hash --genesis FILE Usage: cardano-cli alonzo governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Usage: cardano-cli alonzo governance create-mir-certificate ( ( --reserves @@ -4025,7 +4031,7 @@ Usage: cardano-cli alonzo node | issue-op-cert ) - Era-based node commands + Node operation commands. Usage: cardano-cli alonzo node key-gen [--key-output-format STRING] --cold-verification-key-file FILE @@ -4094,7 +4100,8 @@ Usage: cardano-cli alonzo query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Usage: cardano-cli alonzo query protocol-parameters --socket-path SOCKET_PATH [ --shelley-mode @@ -4429,7 +4436,7 @@ Usage: cardano-cli alonzo stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Usage: cardano-cli alonzo stake-pool registration-certificate ( --stake-pool-verification-key STRING @@ -4488,7 +4495,8 @@ Usage: cardano-cli alonzo stake-pool metadata-hash --pool-metadata-file FILE Usage: cardano-cli alonzo text-view decode-cbor - Era-based text view commands + Commands for dealing with Shelley TextView files. Transactions, addresses etc + are stored on disk as TextView files. Usage: cardano-cli alonzo text-view decode-cbor --in-file FILE [--out-file FILE] @@ -4509,7 +4517,7 @@ Usage: cardano-cli alonzo transaction | view ) - Era-based transaction commands + Transaction commands. Usage: cardano-cli alonzo transaction build-raw [ --script-valid @@ -4894,7 +4902,7 @@ Usage: cardano-cli babbage Usage: cardano-cli babbage address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Usage: cardano-cli babbage address key-gen [--key-output-format STRING] [ --normal-key @@ -4944,7 +4952,7 @@ Usage: cardano-cli babbage key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Usage: cardano-cli babbage key verification-key --signing-key-file FILE --verification-key-file FILE @@ -5026,7 +5034,7 @@ Usage: cardano-cli babbage genesis | hash ) - Era-based genesis commands + Genesis block commands. Usage: cardano-cli babbage genesis key-gen-genesis --verification-key-file FILE --signing-key-file FILE @@ -5128,7 +5136,7 @@ Usage: cardano-cli babbage genesis hash --genesis FILE Usage: cardano-cli babbage governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Usage: cardano-cli babbage governance create-mir-certificate ( ( --reserves @@ -5249,7 +5257,7 @@ Usage: cardano-cli babbage node | issue-op-cert ) - Era-based node commands + Node operation commands. Usage: cardano-cli babbage node key-gen [--key-output-format STRING] --cold-verification-key-file FILE @@ -5318,7 +5326,8 @@ Usage: cardano-cli babbage query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Usage: cardano-cli babbage query protocol-parameters --socket-path SOCKET_PATH [ --shelley-mode @@ -5653,7 +5662,7 @@ Usage: cardano-cli babbage stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Usage: cardano-cli babbage stake-pool registration-certificate ( --stake-pool-verification-key STRING @@ -5712,7 +5721,8 @@ Usage: cardano-cli babbage stake-pool metadata-hash --pool-metadata-file FILE Usage: cardano-cli babbage text-view decode-cbor - Era-based text view commands + Commands for dealing with Shelley TextView files. Transactions, addresses etc + are stored on disk as TextView files. Usage: cardano-cli babbage text-view decode-cbor --in-file FILE [--out-file FILE] @@ -5734,7 +5744,7 @@ Usage: cardano-cli babbage transaction | view ) - Era-based transaction commands + Transaction commands. Usage: cardano-cli babbage transaction build-raw [ --script-valid @@ -6119,7 +6129,7 @@ Usage: cardano-cli conway Usage: cardano-cli conway address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Usage: cardano-cli conway address key-gen [--key-output-format STRING] [ --normal-key @@ -6169,7 +6179,7 @@ Usage: cardano-cli conway key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Usage: cardano-cli conway key verification-key --signing-key-file FILE --verification-key-file FILE @@ -6251,7 +6261,7 @@ Usage: cardano-cli conway genesis | hash ) - Era-based genesis commands + Genesis block commands. Usage: cardano-cli conway genesis key-gen-genesis --verification-key-file FILE --signing-key-file FILE @@ -6351,7 +6361,7 @@ Usage: cardano-cli conway genesis hash --genesis FILE Usage: cardano-cli conway governance (query | action | committee | drep | vote) - Era-based governance commands + Governance commands. Usage: cardano-cli conway governance query ( constitution @@ -6767,7 +6777,7 @@ Usage: cardano-cli conway node | issue-op-cert ) - Era-based node commands + Node operation commands. Usage: cardano-cli conway node key-gen [--key-output-format STRING] --cold-verification-key-file FILE @@ -6836,7 +6846,8 @@ Usage: cardano-cli conway query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Usage: cardano-cli conway query protocol-parameters --socket-path SOCKET_PATH [ --shelley-mode @@ -7213,7 +7224,7 @@ Usage: cardano-cli conway stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Usage: cardano-cli conway stake-pool registration-certificate ( --stake-pool-verification-key STRING @@ -7272,7 +7283,8 @@ Usage: cardano-cli conway stake-pool metadata-hash --pool-metadata-file FILE Usage: cardano-cli conway text-view decode-cbor - Era-based text view commands + Commands for dealing with Shelley TextView files. Transactions, addresses etc + are stored on disk as TextView files. Usage: cardano-cli conway text-view decode-cbor --in-file FILE [--out-file FILE] @@ -7293,7 +7305,7 @@ Usage: cardano-cli conway transaction | view ) - Era-based transaction commands + Transaction commands. Usage: cardano-cli conway transaction build-raw [ --script-valid @@ -7678,7 +7690,7 @@ Usage: cardano-cli latest Usage: cardano-cli latest address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Usage: cardano-cli latest address key-gen [--key-output-format STRING] [ --normal-key @@ -7728,7 +7740,7 @@ Usage: cardano-cli latest key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Usage: cardano-cli latest key verification-key --signing-key-file FILE --verification-key-file FILE @@ -7810,7 +7822,7 @@ Usage: cardano-cli latest genesis | hash ) - Era-based genesis commands + Genesis block commands. Usage: cardano-cli latest genesis key-gen-genesis --verification-key-file FILE --signing-key-file FILE @@ -7910,7 +7922,7 @@ Usage: cardano-cli latest genesis hash --genesis FILE Usage: cardano-cli latest governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Usage: cardano-cli latest governance create-mir-certificate ( ( --reserves @@ -8031,7 +8043,7 @@ Usage: cardano-cli latest node | issue-op-cert ) - Era-based node commands + Node operation commands. Usage: cardano-cli latest node key-gen [--key-output-format STRING] --cold-verification-key-file FILE @@ -8100,7 +8112,8 @@ Usage: cardano-cli latest query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Usage: cardano-cli latest query protocol-parameters --socket-path SOCKET_PATH [ --shelley-mode @@ -8435,7 +8448,7 @@ Usage: cardano-cli latest stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Usage: cardano-cli latest stake-pool registration-certificate ( --stake-pool-verification-key STRING @@ -8494,7 +8507,8 @@ Usage: cardano-cli latest stake-pool metadata-hash --pool-metadata-file FILE Usage: cardano-cli latest text-view decode-cbor - Era-based text view commands + Commands for dealing with Shelley TextView files. Transactions, addresses etc + are stored on disk as TextView files. Usage: cardano-cli latest text-view decode-cbor --in-file FILE [--out-file FILE] @@ -8515,7 +8529,7 @@ Usage: cardano-cli latest transaction | view ) - Era-based transaction commands + Transaction commands. Usage: cardano-cli latest transaction build-raw [ --script-valid diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli index b6b48e2fe3..a3c6f7e817 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra.cli @@ -17,13 +17,17 @@ Available options: -h,--help Show this help text Available commands: - address Era-based address commands - key Era-based key commands - genesis Era-based genesis commands - governance Era-based governance commands - node Era-based node commands - query Era-based query commands + address Payment address commands. + key Key utility commands. + genesis Genesis block commands. + governance Governance commands. + node Node operation commands. + query Node query commands. Will query the local node whose + Unix domain socket is obtained from the + CARDANO_NODE_SOCKET_PATH environment variable. stake-address Stake address commands. - stake-pool Era-based stake pool commands - text-view Era-based text view commands - transaction Era-based transaction commands + stake-pool Stake pool commands. + text-view Commands for dealing with Shelley TextView files. + Transactions, addresses etc are stored on disk as + TextView files. + transaction Transaction commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_address.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_address.cli index 5cb8f579cb..939c58bc17 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_address.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_address.cli @@ -1,6 +1,6 @@ Usage: cardano-cli allegra address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis.cli index 605eed0e02..8b10843c12 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis.cli @@ -12,7 +12,7 @@ Usage: cardano-cli allegra genesis | hash ) - Era-based genesis commands + Genesis block commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli index ab88abbe2b..244ab7ddf1 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_governance.cli @@ -1,6 +1,6 @@ Usage: cardano-cli allegra governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_key.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_key.cli index 968ac95f2b..8b423751c7 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_key.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_key.cli @@ -9,7 +9,7 @@ Usage: cardano-cli allegra key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_node.cli index c323d8eb8d..f06c5fd9ff 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_node.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_node.cli @@ -7,7 +7,7 @@ Usage: cardano-cli allegra node | issue-op-cert ) - Era-based node commands + Node operation commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli index 8b0238d166..f30407b44d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli @@ -16,7 +16,8 @@ Usage: cardano-cli allegra query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli index 54fc57906b..4eafe587c5 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_stake-pool.cli @@ -5,7 +5,7 @@ Usage: cardano-cli allegra stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli index ecb62218f8..aedd2c5223 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_transaction.cli @@ -13,7 +13,7 @@ Usage: cardano-cli allegra transaction | view ) - Era-based transaction commands + Transaction commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo.cli index 141c8ff63c..a07934300d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo.cli @@ -17,13 +17,17 @@ Available options: -h,--help Show this help text Available commands: - address Era-based address commands - key Era-based key commands - genesis Era-based genesis commands - governance Era-based governance commands - node Era-based node commands - query Era-based query commands + address Payment address commands. + key Key utility commands. + genesis Genesis block commands. + governance Governance commands. + node Node operation commands. + query Node query commands. Will query the local node whose + Unix domain socket is obtained from the + CARDANO_NODE_SOCKET_PATH environment variable. stake-address Stake address commands. - stake-pool Era-based stake pool commands - text-view Era-based text view commands - transaction Era-based transaction commands + stake-pool Stake pool commands. + text-view Commands for dealing with Shelley TextView files. + Transactions, addresses etc are stored on disk as + TextView files. + transaction Transaction commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_address.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_address.cli index 1a10bcde2f..d041822276 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_address.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_address.cli @@ -1,6 +1,6 @@ Usage: cardano-cli alonzo address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis.cli index 079aae1f9b..a1d6c67f4e 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis.cli @@ -12,7 +12,7 @@ Usage: cardano-cli alonzo genesis | hash ) - Era-based genesis commands + Genesis block commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance.cli index 208283a537..f48284620c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_governance.cli @@ -1,6 +1,6 @@ Usage: cardano-cli alonzo governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_key.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_key.cli index 402cb3e0f6..92dcd0d399 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_key.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_key.cli @@ -9,7 +9,7 @@ Usage: cardano-cli alonzo key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_node.cli index cce1cfb0c8..6900b63c33 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_node.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_node.cli @@ -7,7 +7,7 @@ Usage: cardano-cli alonzo node | issue-op-cert ) - Era-based node commands + Node operation commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli index 76e7ac8d4f..8529dfe818 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli @@ -16,7 +16,8 @@ Usage: cardano-cli alonzo query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli index 9b2b6488ec..aae2b0d90a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_stake-pool.cli @@ -5,7 +5,7 @@ Usage: cardano-cli alonzo stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli index c2d73ef7ca..6a064b01c7 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_transaction.cli @@ -13,7 +13,7 @@ Usage: cardano-cli alonzo transaction | view ) - Era-based transaction commands + Transaction commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage.cli index cf5844666b..d936e0ea4f 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage.cli @@ -17,13 +17,17 @@ Available options: -h,--help Show this help text Available commands: - address Era-based address commands - key Era-based key commands - genesis Era-based genesis commands - governance Era-based governance commands - node Era-based node commands - query Era-based query commands + address Payment address commands. + key Key utility commands. + genesis Genesis block commands. + governance Governance commands. + node Node operation commands. + query Node query commands. Will query the local node whose + Unix domain socket is obtained from the + CARDANO_NODE_SOCKET_PATH environment variable. stake-address Stake address commands. - stake-pool Era-based stake pool commands - text-view Era-based text view commands - transaction Era-based transaction commands + stake-pool Stake pool commands. + text-view Commands for dealing with Shelley TextView files. + Transactions, addresses etc are stored on disk as + TextView files. + transaction Transaction commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_address.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_address.cli index 701df309ec..24ee3a7020 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_address.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_address.cli @@ -1,6 +1,6 @@ Usage: cardano-cli babbage address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis.cli index 9d9d1b93f4..66ff95e5a9 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis.cli @@ -12,7 +12,7 @@ Usage: cardano-cli babbage genesis | hash ) - Era-based genesis commands + Genesis block commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance.cli index 7f881e9f96..161b28db5a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance.cli @@ -1,6 +1,6 @@ Usage: cardano-cli babbage governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_key.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_key.cli index 0ba052590d..05984ddb8b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_key.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_key.cli @@ -9,7 +9,7 @@ Usage: cardano-cli babbage key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_node.cli index 7aab054ac0..81bc9be704 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_node.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_node.cli @@ -7,7 +7,7 @@ Usage: cardano-cli babbage node | issue-op-cert ) - Era-based node commands + Node operation commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli index 063e7f1822..727ab884a0 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli @@ -16,7 +16,8 @@ Usage: cardano-cli babbage query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli index 9b82baaded..663a221b94 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_stake-pool.cli @@ -5,7 +5,7 @@ Usage: cardano-cli babbage stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction.cli index b64dcc66cf..7ce4e29691 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_transaction.cli @@ -13,7 +13,7 @@ Usage: cardano-cli babbage transaction | view ) - Era-based transaction commands + Transaction commands. Available options: -h,--help Show this help text 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 3ad3049bf0..f648d0311c 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 @@ -17,13 +17,17 @@ Available options: -h,--help Show this help text Available commands: - address Era-based address commands - key Era-based key commands - genesis Era-based genesis commands - governance Era-based governance commands - node Era-based node commands - query Era-based query commands + address Payment address commands. + key Key utility commands. + genesis Genesis block commands. + governance Governance commands. + node Node operation commands. + query Node query commands. Will query the local node whose + Unix domain socket is obtained from the + CARDANO_NODE_SOCKET_PATH environment variable. stake-address Stake address commands. - stake-pool Era-based stake pool commands - text-view Era-based text view commands - transaction Era-based transaction commands + stake-pool Stake pool commands. + text-view Commands for dealing with Shelley TextView files. + Transactions, addresses etc are stored on disk as + TextView files. + transaction Transaction commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_address.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_address.cli index 1be36c86d7..b67a36891f 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_address.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_address.cli @@ -1,6 +1,6 @@ Usage: cardano-cli conway address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis.cli index 259f8d0b92..768e24f913 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis.cli @@ -12,7 +12,7 @@ Usage: cardano-cli conway genesis | hash ) - Era-based genesis commands + Genesis block commands. Available options: -h,--help Show this help text 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 bb7a0f4607..fa45878269 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,6 +1,6 @@ Usage: cardano-cli conway governance (query | action | committee | drep | vote) - Era-based governance commands + Governance commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_key.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_key.cli index 8667d949f9..4f277404ee 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_key.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_key.cli @@ -9,7 +9,7 @@ Usage: cardano-cli conway key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_node.cli index 2a162b5b1d..3fe36322cb 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_node.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_node.cli @@ -7,7 +7,7 @@ Usage: cardano-cli conway node | issue-op-cert ) - Era-based node commands + Node operation commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli index 69e290add8..c9e2932703 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli @@ -16,7 +16,8 @@ Usage: cardano-cli conway query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli index 1d00bbb8ae..2aa6275847 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_stake-pool.cli @@ -5,7 +5,7 @@ Usage: cardano-cli conway stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_transaction.cli index e1709f56f9..c9b96b761c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_transaction.cli @@ -13,7 +13,7 @@ Usage: cardano-cli conway transaction | view ) - Era-based transaction commands + Transaction commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest.cli index 764e6827a4..59ff0a091e 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest.cli @@ -17,13 +17,17 @@ Available options: -h,--help Show this help text Available commands: - address Era-based address commands - key Era-based key commands - genesis Era-based genesis commands - governance Era-based governance commands - node Era-based node commands - query Era-based query commands + address Payment address commands. + key Key utility commands. + genesis Genesis block commands. + governance Governance commands. + node Node operation commands. + query Node query commands. Will query the local node whose + Unix domain socket is obtained from the + CARDANO_NODE_SOCKET_PATH environment variable. stake-address Stake address commands. - stake-pool Era-based stake pool commands - text-view Era-based text view commands - transaction Era-based transaction commands + stake-pool Stake pool commands. + text-view Commands for dealing with Shelley TextView files. + Transactions, addresses etc are stored on disk as + TextView files. + transaction Transaction commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_address.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_address.cli index b8cab64887..f3cf7e0afa 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_address.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_address.cli @@ -1,6 +1,6 @@ Usage: cardano-cli latest address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis.cli index 64c6c560aa..d877b256b0 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis.cli @@ -12,7 +12,7 @@ Usage: cardano-cli latest genesis | hash ) - Era-based genesis commands + Genesis block commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli index 23798f9f05..8fe05e68da 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance.cli @@ -1,6 +1,6 @@ Usage: cardano-cli latest governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_key.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_key.cli index f77ee21f75..aae3d2309b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_key.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_key.cli @@ -9,7 +9,7 @@ Usage: cardano-cli latest key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_node.cli index 75e5d3ee0d..babb45a768 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_node.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_node.cli @@ -7,7 +7,7 @@ Usage: cardano-cli latest node | issue-op-cert ) - Era-based node commands + Node operation commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli index adff97f61b..d311792456 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli @@ -16,7 +16,8 @@ Usage: cardano-cli latest query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli index 6dc6e11c59..20530d9c46 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_stake-pool.cli @@ -5,7 +5,7 @@ Usage: cardano-cli latest stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction.cli index 470266a225..c101f6a801 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_transaction.cli @@ -13,7 +13,7 @@ Usage: cardano-cli latest transaction | view ) - Era-based transaction commands + Transaction commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary.cli index 4cea2a1f8e..b9331aba22 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary.cli @@ -17,13 +17,17 @@ Available options: -h,--help Show this help text Available commands: - address Era-based address commands - key Era-based key commands - genesis Era-based genesis commands - governance Era-based governance commands - node Era-based node commands - query Era-based query commands + address Payment address commands. + key Key utility commands. + genesis Genesis block commands. + governance Governance commands. + node Node operation commands. + query Node query commands. Will query the local node whose + Unix domain socket is obtained from the + CARDANO_NODE_SOCKET_PATH environment variable. stake-address Stake address commands. - stake-pool Era-based stake pool commands - text-view Era-based text view commands - transaction Era-based transaction commands + stake-pool Stake pool commands. + text-view Commands for dealing with Shelley TextView files. + Transactions, addresses etc are stored on disk as + TextView files. + transaction Transaction commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_address.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_address.cli index 04bad6f527..242527d838 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_address.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_address.cli @@ -1,6 +1,6 @@ Usage: cardano-cli mary address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis.cli index 792334e249..95034b1ccf 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis.cli @@ -12,7 +12,7 @@ Usage: cardano-cli mary genesis | hash ) - Era-based genesis commands + Genesis block commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance.cli index c2826418f9..e633836e37 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_governance.cli @@ -1,6 +1,6 @@ Usage: cardano-cli mary governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_key.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_key.cli index 02ca5583d1..8dc24ca138 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_key.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_key.cli @@ -9,7 +9,7 @@ Usage: cardano-cli mary key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_node.cli index 606c0baada..71af7ae727 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_node.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_node.cli @@ -7,7 +7,7 @@ Usage: cardano-cli mary node | issue-op-cert ) - Era-based node commands + Node operation commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli index b7318941ac..0faa10a768 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli @@ -16,7 +16,8 @@ Usage: cardano-cli mary query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli index 6629ade904..3c42a67b75 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_stake-pool.cli @@ -5,7 +5,7 @@ Usage: cardano-cli mary stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli index 680d670557..b14fdcfb21 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_transaction.cli @@ -13,7 +13,7 @@ Usage: cardano-cli mary transaction | view ) - Era-based transaction commands + Transaction commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley.cli index 923778a2f6..c20ad10b29 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley.cli @@ -17,13 +17,17 @@ Available options: -h,--help Show this help text Available commands: - address Era-based address commands - key Era-based key commands - genesis Era-based genesis commands - governance Era-based governance commands - node Era-based node commands - query Era-based query commands + address Payment address commands. + key Key utility commands. + genesis Genesis block commands. + governance Governance commands. + node Node operation commands. + query Node query commands. Will query the local node whose + Unix domain socket is obtained from the + CARDANO_NODE_SOCKET_PATH environment variable. stake-address Stake address commands. - stake-pool Era-based stake pool commands - text-view Era-based text view commands - transaction Era-based transaction commands + stake-pool Stake pool commands. + text-view Commands for dealing with Shelley TextView files. + Transactions, addresses etc are stored on disk as + TextView files. + transaction Transaction commands. diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_address.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_address.cli index 17ed3e42c9..9f092336e2 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_address.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_address.cli @@ -1,6 +1,6 @@ Usage: cardano-cli shelley address (key-gen | key-hash | build | info) - Era-based address commands + Payment address commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis.cli index 41554032a0..65ff660ac0 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis.cli @@ -12,7 +12,7 @@ Usage: cardano-cli shelley genesis | hash ) - Era-based genesis commands + Genesis block commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance.cli index 5e3e135227..f1993128c8 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_governance.cli @@ -1,6 +1,6 @@ Usage: cardano-cli shelley governance (create-mir-certificate | action | drep) - Era-based governance commands + Governance commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_key.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_key.cli index 152b9bda76..1f6999a624 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_key.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_key.cli @@ -9,7 +9,7 @@ Usage: cardano-cli shelley key | convert-cardano-address-key ) - Era-based key commands + Key utility commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_node.cli index 74a23a4b0f..46d05378d7 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_node.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_node.cli @@ -7,7 +7,7 @@ Usage: cardano-cli shelley node | issue-op-cert ) - Era-based node commands + Node operation commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli index 323447168d..aee2335c58 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli @@ -16,7 +16,8 @@ Usage: cardano-cli shelley query | slot-number ) - Era-based query commands + Node query commands. Will query the local node whose Unix domain socket is + obtained from the CARDANO_NODE_SOCKET_PATH environment variable. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli index b491769385..3740209b5f 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_stake-pool.cli @@ -5,7 +5,7 @@ Usage: cardano-cli shelley stake-pool | metadata-hash ) - Era-based stake pool commands + Stake pool commands. Available options: -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli index 2acee6456d..56647438fb 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_transaction.cli @@ -13,7 +13,7 @@ Usage: cardano-cli shelley transaction | view ) - Era-based transaction commands + Transaction commands. Available options: -h,--help Show this help text