From 27d3d81afe3021e226b80a2c7734ed9a8c595641 Mon Sep 17 00:00:00 2001 From: Jannik Date: Fri, 24 Sep 2021 18:24:59 +0200 Subject: feat: allow input of credentials from stdin (#185) * feat: allow credential input from stdin for registration This changes the options for register to be optional. If arguments are not given, the program will ask for them interactively. * feat: allow credential input from stdin for login * style: apply cargo fmt --- src/command/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/command/mod.rs') diff --git a/src/command/mod.rs b/src/command/mod.rs index f959fc98..5b03e360 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -147,12 +147,7 @@ impl AtuinCmd { logout::run(); Ok(()) } - Self::Register(r) => register::run( - &client_settings, - r.username.as_str(), - r.email.as_str(), - r.password.as_str(), - ), + Self::Register(r) => register::run(&client_settings, r.username, r.email, r.password), Self::Key => { let key = atuin_client::encryption::load_key(&client_settings)?; println!("{}", atuin_client::encryption::encode_key(key)?); -- cgit v1.3.1