Skip to content
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

User should be able to specify username and/or password from CLI. #9

Open
Zodiase opened this issue Feb 2, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Zodiase
Copy link
Owner

Zodiase commented Feb 2, 2020

Currently I assume the user would only use one account, thus saving it in the preference file is good enough to prevent repetitively entering passwords.
However, I do see that some people may want to use a different account at some point. This is very difficult to do right now if the user has already signed in with an account. There is no way to sign out unless the user manually deletes the preference file, which is not a good option for normal users.

The proposed solution is to update the CLI options with this addition:

bart [-u|--username <username> [--password <password>]]

When the username option is provided, the current user info in the preference file is ignored, and the tool will not prompt for a username.
When the password option is provided along with the username, the tool will not prompt for a password.

To discourage passing password in a plain text way like this, the password option doesn't have a shorthand.

If login is successful, the provided username-password pair will replace the existing user info in the preferences.

@Zodiase Zodiase added the enhancement New feature or request label Feb 2, 2020
@Zodiase Zodiase added this to the The one with more options. milestone Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant