Allow passing a username directly#94
Conversation
|
I like the idea as well |
|
I'm not against adding that in 0.11 (so not the next version, which I would like to be feature-freezed until release). 0.11 will also include a way to configure Before I look at the code, let's talk about the functional side. How will this cohabit with the remember feature? Because the way I see it, if remember is enabled, the first time you log in with the default user, it will be cached, which will make changing the default user a no-op. On the other hand, whenever another user logs in, the default will be ignored. Should we forbid using both options at the same time to prevent confusion? Also (but it can wait until we agree on the point above), the README and the manpage will need to be updated to include the new option, and a test will need to be written / edited to include this option. Edit: I just saw this is... one year old. Apologies for not seeing it before. I must have missed the notification. |
Makes sense ! A config file is a great idea.
I would say that we either prevent both options to be simultaneously provided or we (silently or not) make the
Sure, I will do so after we agree on the spec.
Don't worry ! I had forgotten about it too. Thanks for taking the time to look at it in the end anyway :) |
|
i would like to see this added as it would be very useful for my nixos single-user setup. |
Hello !
This is a proposal to add a new option
--user(or--default-user) which would make possible to calltuigreetwith a username to be pre-filled.Of course, someone could already user the
--rememberbut it could be useful to be able to 'hardcode' directly the desired username in the CLI arguments.Note: I have almost 0 knowledge in Rust. The provided code has to be taken with care !