codeberg_cli/actions/notification/
mod.rs

1pub mod list;
2pub mod view;
3
4use clap::Subcommand;
5
6use super::GeneralArgs;
7
8/// Notification subcommands
9#[derive(Debug, Subcommand)]
10pub enum NotificationArgs {
11    List(list::ListNotificationArgs),
12    View(view::ViewNotificationArgs),
13}
14
15impl NotificationArgs {
16    pub async fn run(self, general_args: GeneralArgs) -> anyhow::Result<()> {
17        match self {
18            NotificationArgs::List(args) => args.run(general_args).await,
19            NotificationArgs::View(args) => args.run(general_args).await,
20        }
21    }
22}