codeberg_cli/actions/auth/
mod.rs1pub mod list;
2pub mod login;
3pub mod logout;
4
5use clap::Subcommand;
6
7use super::GlobalArgs;
8
9#[derive(Subcommand, Debug)]
11pub enum AuthArgs {
12 Login(login::LoginArgs),
13 Logout(logout::LogoutArgs),
14 List(list::ListArgs),
15}
16
17impl AuthArgs {
18 pub async fn run(self, global_args: GlobalArgs) -> miette::Result<()> {
19 match self {
20 AuthArgs::Login(args) => args.run(global_args).await,
21 AuthArgs::Logout(args) => args.run(global_args).await,
22 AuthArgs::List(args) => args.run(global_args).await,
23 }
24 }
25}