diff options
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>, |
