-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ETCM-202] Provide Mantis command-line interface #746
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please update the
README
too - Other than that LGTM
val generatePrivateKeyCommand = "generate-private-key" | ||
val deriveAddressCommand = "derive-address" | ||
val generateAllocsCommand = "generate-allocs" | ||
val useAddressesFlag = "useAddresses" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not replace it with either --address=<address>
or --key=<key
(or in plural)? In that way it would be a bit easier and always clear what is passed without reaching for bool flags
@@ -17,6 +18,7 @@ object App extends Logger { | |||
val mallet = "mallet" | |||
val faucet = "faucet" | |||
val ecKeyGen = "eckeygen" | |||
val cli = "mantis-cli" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just cli
if not separate launcher is created?
e32f446
to
ed84de0
Compare
3892874
to
659e94f
Compare
659e94f
to
8f5e412
Compare
|
||
object Fixture { | ||
|
||
def argument(name: String, value: Option[Any] = None): String = s"--$name${value.fold("")(v => s"=${v.toString}")}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very minor in current state - that Any
there, it's fine now, but I'd consider using just String
instead so any conversion needs to happen explicitly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
CLI to mantis. Options: