-
Notifications
You must be signed in to change notification settings - Fork 113
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
Use InquirerPy for user input #512
Conversation
I don't see the point in adding another dependency. the password wasn't shown already with the current implementation. |
Imho having * appear makes input easier / more intuitive. If this is not a direction wanted for the script though, that's fine, and / or I can look into coding something which doesn't require the dependency. |
|
We already have |
Afaik |
a4d0bbd: you misunderstood me, it's a mindset of windows users that password must be shown as stars. other users consider that that's leaking password info if you show how long is your password while you're typing and someone peeks over your shoulders. I never said you should make such changewindows only. what I said, that rather using yet another framework as dependency, use existing ones. we have click, we have rich already as deps. it's my opinion (other maintainers might think otherwise). also, I won't support any windows specific code at all. ever. python is platform-independent and should stay that way here. |
Screenshots should go to PR body |
Server selection: you lost information of server details that were printed before |
Fixed
No, that information is still there. The selectable list appears directly after it as per the current server selection input.
Completely understand. The idea of the password * is to make things more user friendly for a susbset of users (Windows users). If this presents too much of a concern then I'm happy to remove it, particularly if it distracts from the main purpose of this push, selectable server / user input options rather than typed (which are more susceptible to user error e.g. typos). I only tacked on the password input alteration as the dependency happened to support it on top of the selectable input options.
That's fair. |
|
default password via commandline/env is lost: |
Done
I'll lookup how to do this and implement.
Screenshot updated to show positioning in flow. |
Double checked and it IS there as per the original code. |
yes, it's back once you removed platform-specific code. |
e61f2fc
to
6373202
Compare
Co-authored-by: Elan Ruusamäe <[email protected]>
Server input now uses inquirer to make selection easier. Managed user Y/N and input combined into single inquirer selection with MAIN USER as default. Co-authored-by: Elan Ruusamäe <[email protected]>
The main Plex username is passed from the original user input and displayed at the top of the user list as the default. Also sorted server list for easier navigation. A more elegant solution to passing the main Plex username. Co-authored-by: Elan Ruusamäe <[email protected]>
The "rich" package discussion on the feature request: |
Simplified user input using InquirerPy:
Server selection (selectable list)
Managed user Y/N (made redundant by below)
Managed user selection (selectable list, including default main username)