Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Hurlin <smelc@users.noreply.github.com>

Reintroduce accidentally deleted cpp
  • Loading branch information
carlhammann committed Jan 12, 2024
1 parent bf65a3a commit 93effe9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pGovernanceHashAnchorDataCmd era = do
(Cmd.GovernanceHashAnchorDataCmdArgs eon
<$> pGovernanceAnchorDataHashSource
<*> optional pOutputFile))
$ Opt.progDesc "Compute the hash of some anchor data."
$ Opt.progDesc "Compute the hash of some anchor data (to then pass it to other governance commands)."

pGovernanceAnchorDataHashSource :: Parser Cmd.GovernanceAnchorDataHashSource
pGovernanceAnchorDataHashSource =
Expand Down Expand Up @@ -73,4 +73,4 @@ pGovernanceHashScriptCmd era = do
(Cmd.GovernanceHashScriptCmdArgs eon
<$> pScript
<*> optional pOutputFile))
$ Opt.progDesc "Compute the hash of a script."
$ Opt.progDesc "Compute the hash of a script (to then pass it to other governance commands)."
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ module Test.Golden.Governance.DRep where
#endif

import Control.Monad

#ifdef UNIX
import Data.Bits ((.&.))
import GHC.Stack (withFrozenCallStack)
import Numeric (showOct)
import System.Posix.Files (fileMode, getFileStatus)
#endif

import Test.Cardano.CLI.Util (execCardanoCLI, noteInputFile, noteTempFile, propertyOnce)

Expand Down
5 changes: 3 additions & 2 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -6381,12 +6381,13 @@ Usage: cardano-cli conway governance hash anchor-data
)
[--out-file FILE]

Compute the hash of some anchor data.
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.
Compute the hash of a script (to then pass it to other governance commands).

Usage: cardano-cli conway governance vote (create | view)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ Available options:
-h,--help Show this help text

Available commands:
anchor-data Compute the hash of some anchor data.
script Compute the hash of a script.
anchor-data Compute the hash of some anchor data (to then pass it
to other governance commands).
script Compute the hash of a script (to then pass it to
other governance commands).
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Usage: cardano-cli conway governance hash anchor-data
)
[--out-file FILE]

Compute the hash of some anchor data.
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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Usage: cardano-cli conway governance hash script --script-file FILE
[--out-file FILE]

Compute the hash of a script.
Compute the hash of a script (to then pass it to other governance commands).

Available options:
--script-file FILE Filepath of the script.
Expand Down

0 comments on commit 93effe9

Please sign in to comment.