Skip to content

Commit 5494f59

Browse files
committed
[cli] feat: add ANTI_ANTITHESIS_USER option (issue ee9552b)
1 parent 15fbab7 commit 5494f59

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

cli/src/User/Agent/Options.hs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,26 @@ registryOption =
197197
antithesisAuthOption :: Parser AntithesisAuth
198198
antithesisAuthOption =
199199
cardanoWithPwd
200-
<$> secretsParser
200+
<$> antithesisUserOption
201+
<*> secretsParser
201202
"Enter the password to access Antithesis"
202203
"The password to access Antithesis"
203204
"ANTI_ANTITHESIS_PASSWORD"
204205
"PASSWORD"
205206
"ask-antithesis-password"
206207
"antithesisPassword"
207208
where
208-
cardanoWithPwd pwd =
209-
AntithesisAuth{username = "cardano", password = pwd}
209+
cardanoWithPwd username pwd =
210+
AntithesisAuth{username = username, password = pwd}
211+
212+
antithesisUserOption :: Parser String
213+
antithesisUserOption =
214+
setting
215+
[ env "ANTI_ANTITHESIS_USER"
216+
, metavar "ANTITHESIS_USER"
217+
, help "The username of the Antithesis account"
218+
, reader str
219+
]
210220

211221
downloadAssetsOptions
212222
:: Parser

0 commit comments

Comments
 (0)