aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/register.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conrad.ludgate@truelayer.com>2022-04-21 10:12:56 +0100
committerGitHub <noreply@github.com>2022-04-21 09:12:56 +0000
commitd57f549855caf8ab90b5ea0ae7cc9445f3abedfc (patch)
tree0818ff405a3b697a0ca981d215ceb4dbb30cd15a /src/command/client/register.rs
parentFix SQL cache query (#318) (diff)
downloadatuin-d57f549855caf8ab90b5ea0ae7cc9445f3abedfc.zip
refactor commands for better separation (#313)
* refactor commands for better separation * fmt
Diffstat (limited to '')
-rw-r--r--src/command/client/register.rs (renamed from src/command/register.rs)6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/command/register.rs b/src/command/client/register.rs
index 46f4a65d..2c60a2e9 100644
--- a/src/command/register.rs
+++ b/src/command/client/register.rs
@@ -19,6 +19,12 @@ pub struct Cmd {
pub password: Option<String>,
}
+impl Cmd {
+ pub async fn run(self, settings: &Settings) -> Result<()> {
+ run(settings, &self.username, &self.email, &self.password).await
+ }
+}
+
pub async fn run(
settings: &Settings,
username: &Option<String>,