File tree 9 files changed +12
-30
lines changed
9 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -143,12 +143,12 @@ library
143
143
Cardano.CLI.EraIndependent.Address.Option
144
144
Cardano.CLI.EraIndependent.Address.Run
145
145
Cardano.CLI.EraIndependent.Cip.Cip129.Command
146
- Cardano.CLI.EraIndependent.Cip.Cip129.Conversion
147
- Cardano.CLI.EraIndependent.Cip.Cip129.Options
146
+ Cardano.CLI.EraIndependent.Cip.Cip129.Internal. Conversion
147
+ Cardano.CLI.EraIndependent.Cip.Cip129.Option
148
148
Cardano.CLI.EraIndependent.Cip.Cip129.Run
149
149
Cardano.CLI.EraIndependent.Cip.Command
150
150
Cardano.CLI.EraIndependent.Cip.Common
151
- Cardano.CLI.EraIndependent.Cip.Options
151
+ Cardano.CLI.EraIndependent.Cip.Option
152
152
Cardano.CLI.EraIndependent.Cip.Run
153
153
Cardano.CLI.EraIndependent.Debug.CheckNodeConfiguration.Command
154
154
Cardano.CLI.EraIndependent.Debug.CheckNodeConfiguration.Run
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import Cardano.CLI.Type.Key
25
25
26
26
import Data.Text (Text )
27
27
import Vary
28
- import Vary (Vary )
29
28
30
29
data GovernanceDRepCmds era
31
30
= GovernanceDRepKeyGenCmd ! (GovernanceDRepKeyGenCmdArgs era )
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import Data.Foldable (asum)
23
23
import Data.Function
24
24
import Options.Applicative (Parser )
25
25
import Options.Applicative qualified as Opt
26
- import Vary
27
26
28
27
pGovernanceDRepCmds
29
28
:: ()
@@ -85,22 +84,6 @@ pGovernanceDRepKeyIdCmd era = do
85
84
)
86
85
$ Opt. progDesc " Generate a drep id."
87
86
88
- pDRepIdOutputFormat :: Parser (Vary [FormatBech32 , FormatHex ])
89
- pDRepIdOutputFormat =
90
- asum [make (Vary. from FormatHex ) " hex" , make (Vary. from FormatBech32 ) " bech32" ]
91
- <|> pure default_
92
- where
93
- default_ = Vary. from FormatBech32
94
- make format flag_ =
95
- Opt. flag' format $
96
- mconcat
97
- [ Opt. help $
98
- " Format drep id output as "
99
- <> flag_
100
- <> (if format == default_ then " (the default)." else " ." )
101
- , Opt. long (" output-" <> flag_)
102
- ]
103
-
104
87
-- Registration Certificate related
105
88
106
89
pRegistrationCertificateCmd
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE DataKinds #-}
2
2
3
- module Cardano.CLI.EraIndependent.Cip.Cip129.Conversion
3
+ module Cardano.CLI.EraIndependent.Cip.Cip129.Internal. Conversion
4
4
( encodeCip129DrepVerficationKeyText
5
5
, encodeCip129CommitteeColdVerficationKeyText
6
6
, encodeCip129CommitteeHotVerficationKeyText
Original file line number Diff line number Diff line change 1
- module Cardano.CLI.EraIndependent.Cip.Cip129.Options
1
+ module Cardano.CLI.EraIndependent.Cip.Cip129.Option
2
2
( pCip129
3
3
)
4
4
where
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Cardano.Api hiding (Cip129)
9
9
10
10
import Cardano.CLI.Compatible.Exception
11
11
import Cardano.CLI.EraIndependent.Cip.Cip129.Command
12
- import Cardano.CLI.EraIndependent.Cip.Cip129.Conversion
12
+ import Cardano.CLI.EraIndependent.Cip.Cip129.Internal. Conversion
13
13
import Cardano.CLI.EraIndependent.Cip.Common
14
14
import Cardano.CLI.Orphan ()
15
15
import Cardano.CLI.Read
Original file line number Diff line number Diff line change 1
- module Cardano.CLI.EraIndependent.Cip.Options
1
+ module Cardano.CLI.EraIndependent.Cip.Option
2
2
( parseCipCmd
3
3
)
4
4
where
5
5
6
6
import Cardano.CLI.Command (ClientCommand (CipFormatCmds ))
7
- import Cardano.CLI.EraIndependent.Cip.Cip129.Options
7
+ import Cardano.CLI.EraIndependent.Cip.Cip129.Option
8
8
import Cardano.CLI.EraIndependent.Cip.Command
9
9
import Cardano.CLI.Parser
10
10
@@ -27,6 +27,6 @@ pCipFormat =
27
27
Opt. info pCip129 $
28
28
Opt. progDesc $
29
29
mconcat
30
- [ " Modified binary encoding of drep keys, constitutional committee cold and hot keys, governance actions."
30
+ [ " Modified binary encoding of drep keys, constitutional committee cold and hot keys, governance actions. "
31
31
, " https://github.com/cardano-foundation/CIPs/tree/master/CIP-0129"
32
32
]
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import Cardano.CLI.EraBased.Common.Option
16
16
import Cardano.CLI.EraBased.Option
17
17
import Cardano.CLI.EraBased.Query.Option (pQueryCmdsTopLevel )
18
18
import Cardano.CLI.EraIndependent.Address.Option
19
- import Cardano.CLI.EraIndependent.Cip.Options
19
+ import Cardano.CLI.EraIndependent.Cip.Option
20
20
import Cardano.CLI.EraIndependent.Debug.Option
21
21
import Cardano.CLI.EraIndependent.Hash.Option
22
22
import Cardano.CLI.EraIndependent.Key.Option
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ instance ToJSON L.DefaultVote where
27
27
L. DefaultNoConfidence -> String " DefaultNoConfidence"
28
28
29
29
instance Error [Bech32DecodeError ] where
30
- prettyError errs = mconcat $ map prettyError errs
30
+ prettyError errs = vsep $ map prettyError errs
31
31
32
32
instance Error [RawBytesHexError ] where
33
- prettyError errs = mconcat $ map prettyError errs
33
+ prettyError errs = vsep $ map prettyError errs
34
34
35
35
instance Error Text. ParseError where
36
36
prettyError = pretty . show
You can’t perform that action at this time.
0 commit comments