Skip to main content

deslicer_cli/commands/auth/
mod.rs

1use clap::Subcommand;
2
3use crate::Ctx;
4
5pub mod login;
6pub mod status;
7
8#[derive(Subcommand)]
9pub enum AuthCmd {
10    Login(login::Args),
11    Status(status::Args),
12}
13
14pub async fn dispatch(ctx: Ctx, cmd: AuthCmd) -> i32 {
15    match cmd {
16        AuthCmd::Login(args) => login::run(ctx, args).await,
17        AuthCmd::Status(args) => status::run(ctx, args).await,
18    }
19}