Skip to content

Commit 89e1140

Browse files
committed
wb | add profile names with no era suffix to cardano-profile
1 parent c6f094f commit 89e1140

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bench/cardano-profile/app/cardano-profile.hs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import qualified Cardano.Benchmarking.Profile.Types as Types
2323

2424
data Cli =
2525
Names
26+
| NamesNoEra
2627
| NamesCloudNoEra
2728
| All
2829
| ByName PrettyPrint String
@@ -43,6 +44,8 @@ main = do
4344
case cli of
4445
-- Print all profile names.
4546
Names -> BSL8.putStrLn $ Aeson.encode Profiles.names
47+
-- Print all profile names without the era suffix.
48+
NamesNoEra -> BSL8.putStrLn $ Aeson.encode Profiles.namesNoEra
4649
-- Print all cloud profile (-nomadperf) names.
4750
NamesCloudNoEra -> BSL8.putStrLn $ Aeson.encode Profiles.namesCloudNoEra
4851
-- Print a map with all profiles, with an optional overlay.
@@ -111,11 +114,17 @@ cliParser = OA.hsubparser $
111114
(pure Names)
112115
(OA.fullDesc <> OA.header "names" <> OA.progDesc "All profiles names")
113116
)
117+
<>
118+
OA.command "names-noera"
119+
(OA.info
120+
(pure NamesNoEra)
121+
(OA.fullDesc <> OA.header "names-noera" <> OA.progDesc "All profiles names (no era suffix)")
122+
)
114123
<>
115124
OA.command "names-cloud-noera"
116125
(OA.info
117126
(pure NamesCloudNoEra)
118-
(OA.fullDesc <> OA.header "names" <> OA.progDesc "All cloud profiles names (no era suffix)")
127+
(OA.fullDesc <> OA.header "names-cloud-noera" <> OA.progDesc "All cloud profiles names (no era suffix)")
119128
)
120129
<>
121130
OA.command "all"

0 commit comments

Comments
 (0)