-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add option to run non-interactively #17
Conversation
Setup was wrong for linting.
References #16 |
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.
Nice work 👍
Below comments needs to be addressed :
non-interactive
option won't work if different chain's account have different passwords.- Update readme describing
non-interactive
option. - Found linting issues.
Thanks!
True, what do you propose in order to fix this? I can't think of a proper solution for this. 🧐 Except maybe adding the password to the configuration, but I am not sure that the passwords should be stored in a file 🤔
Will update the README 👍
Linting will be handled in a separate issue #18. |
Sorry that I missed below point to mention : |
One solution could be to accept array of
In the above example, password for chain 3 and 1406 is test3 and test1406 respectively. |
You cannot have a variable number of arguments to an option, as the command line interpreter wouldn't know where the option ends and the program arguments start. You would need to do it with something like a comma separated string
It heavily depends on the environment where you run the faucet. Port |
Passing multiple passwords on a command line is cumbersome and I would propose to avoid it. I would rather propose to pass a password file, which would specify password per each address@chainid in command line. First line in password file corresponds to the first address@chainid in cli, and so on.
|
Passwords are now read from a file. Also fixed some linting. |
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.
Good work.
LGTM 👍
@pgev do you want to have a look or can we merge? |
In order to automatically restart the faucet it must be possible to run it non-interactively.
Also fixed linter setup.
References #16.