Repository: atuinsh/atuin (language: rust)

Issue:
`atuin register` asks for password, might be confused with `sudo` password (suggestion: add some context)
I just ran `atuin register` for the first time on my macbook. It asked for a password, and I expected that it was trying to do a `sudo` and started googling on what it could possibly be that it wanted to `sudo` for. Only after I just pressed enter (to break off the process) I realised it was asking for a password for the service (I'm happy that I didn't type my mac's password, since that should not be used ever for anything else than unlocking my mac).

It would be great if the "Please enter password" prompt could be prefixed with something like "When registering an atuin account, we ask you to create a password", even better if this also contained a link explaining what the password would be used for, and what limits there are an the password (if any).




Discussion / hints:

Fix patch:
diff --git a/atuin/src/command/client/account/register.rs b/atuin/src/command/client/account/register.rs
index f8c0eafc3ca..0523dced860 100644
--- a/atuin/src/command/client/account/register.rs
+++ b/atuin/src/command/client/account/register.rs
@@ -29,8 +29,11 @@ pub async fn run(
     password: &Option<String>,
 ) -> Result<()> {
     use super::login::or_user_input;
+    println!("Registering for an Atuin Sync account");
+
     let username = or_user_input(username, "username");
     let email = or_user_input(email, "email");
+
     let password = password
         .clone()
         .unwrap_or_else(super::login::read_user_password);


Test patch: