-
Notifications
You must be signed in to change notification settings - Fork 709
Make add
and reset
CLI commands scriptable
#4090
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
Make add
and reset
CLI commands scriptable
#4090
Conversation
@flying-sausages Can you give this a try to see if it works correctly for you? |
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.
🙋🏻♀️
src/command-line/users/add.js
Outdated
) | ||
.option( | ||
"--save-logs", | ||
"if password is specified on command line, this will effect if logs for this user will be saved on disk" |
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.
i think this should be "affect", not "effect"
but even so, i still don't understand what this option does
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.
if password is specified, this enables saving logs to disk
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.
only if a password is specified, this enables saving (a user's) logs to disk
src/command-line/users/add.js
Outdated
.action(function (name) { | ||
.option( | ||
"--password [password]", | ||
"new password, will be prompted if not specified on command line" |
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.
on command line
feels redundant.
Oops, didn't mean to click on close. I've improved the wording on both of the options based on your feedback. |
Do you mind squashing your commits into one please. |
Add CLI options `--password` and `--save-logs` (for `add` only) in order to make adding users and changing user passwords scriptable. Closes thelounge#3913
0713ef5
to
e790a72
Compare
done! |
Add CLI options
--password
and--save-logs
(foradd
only) in order to make adding users and changing user passwords scriptable.Closes #3913.