diff options
| author | Jannik <jannik.peters@posteo.de> | 2021-09-24 18:24:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 16:24:59 +0000 |
| commit | 27d3d81afe3021e226b80a2c7734ed9a8c595641 (patch) | |
| tree | 577b6cf9f1db033c3a68124d6a5ce01d0a8d7a83 /src/command/mod.rs | |
| parent | Resolve clippy warnings (#187) (diff) | |
| download | atuin-27d3d81afe3021e226b80a2c7734ed9a8c595641.zip | |
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
Diffstat (limited to 'src/command/mod.rs')
| -rw-r--r-- | src/command/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
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)?); |
