8000 Make `add` and `reset` CLI commands scriptable by supertassu · Pull Request #4090 · thelounge/thelounge · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

supertassu
Copy link
Contributor

Add CLI options --password and --save-logs (for add only) in order to make adding users and changing user passwords scriptable.

Closes #3913.

@xPaw
Copy link
Member
xPaw commented Oct 4, 2020

@flying-sausages Can you give this a try to see if it works correctly for you?

@xPaw xPaw added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Oct 4, 2020
Copy link
Contributor
@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙋🏻‍♀️

)
.option(
"--save-logs",
"if password is specified on command line, this will effect if logs for this user will be saved on disk"
Copy link
Contributor

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

Copy link
Member
@xPaw xPaw Oct 5, 2020

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

Copy link
Contributor

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

.action(function (name) {
.option(
"--password [password]",
"new password, will be prompted if not specified on command line"
Copy link
Member

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.

@xPaw xPaw added this to the 4.3.0 milestone Oct 5, 2020
@supertassu supertassu closed this Oct 6, 2020
@supertassu supertassu reopened this Oct 6, 2020
@supertassu
Copy link
Contributor Author

Oops, didn't mean to click on close. I've improved the wording on both of the options based on your feedback.

@xPaw
Copy link
Member
xPaw commented Oct 6, 2020

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
@supertassu supertassu force-pushed the scripable-user-password-change branch from 0713ef5 to e790a72 Compare October 7, 2020 06:01
@supertassu
Copy link
Contributor Author

Do you mind squashing your commits into one please.

done!

@xPaw xPaw merged commit 0322c04 into thelounge:master Oct 7, 2020
@supertassu supertassu deleted the scripable-user-password-change branch October 7, 2020 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make add and reset CLI commands scriptable
3 participants
0