feature/apps
claude/smbcloud-github-app-k9641p
development
feature/apps
feature/build-release
feature/ci-docs
feature/ci-ruby-gems
feature/cicd
feature/completion
feature/dist-nuget
feature/fix-ci-sdk-pypi-rubygem
feature/fix-clippy-on-stable-channel
feature/fix-deployment-script
feature/github-email
feature/gresiq-v1
feature/project-new-structure
feature/rsync-deploy
feature/ruby-runner
feature/sdk-npm
feature/sdk-workflows
feature/smbcloud-cli-release-npm
feature/smbcloud-deploy
feature/wasm
main
release/v0.7.4
| 1 | pub mod cli; |
| 2 | pub mod forgot; |
| 3 | pub mod lib; |
| 4 | pub mod login; |
| 5 | pub mod model; |
| 6 | pub mod signup; |
| 7 | |
| 8 | use self::{ |
| 9 | cli::Commands, |
| 10 | forgot::process_forgot, |
| 11 | login::{process_login, process_logout}, |
| 12 | signup::process_signup, |
| 13 | }; |
| 14 | use anyhow::Result; |
| 15 | use smbpndk_model::CommandResult; |
| 16 | |
| 17 | pub async fn process_account(commands: Commands) -> Result<CommandResult> { |
| 18 | match commands { |
| 19 | Commands::Signup {} => process_signup().await, |
| 20 | Commands::Login {} => process_login().await, |
| 21 | Commands::Logout {} => process_logout().await, |
| 22 | Commands::Forgot {} => process_forgot().await, |
| 23 | } |
| 24 | } |