feat: New reply command

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-19 20:04:21 +00:00
parent a324ba2ff7
commit 9444fc1a8c
2 changed files with 187 additions and 3 deletions

View File

@@ -18,6 +18,8 @@
mod issue;
/// CLI arguments parsers
pub mod parsers;
/// 'reply` command
mod reply;
/// `repo` subcommands
mod repo;
/// CLI traits
@@ -30,9 +32,10 @@ use clap_verbosity_flag::Verbosity;
use nostr::key::Keys;
use nostr::{PublicKey, RelayUrl, SecretKey};
pub use self::issue::IssueSubcommands;
pub use self::repo::RepoSubcommands;
pub use self::traits::CommandRunner;
use self::issue::IssueSubcommands;
use self::reply::ReplyArgs;
use self::repo::RepoSubcommands;
use self::traits::CommandRunner;
use crate::error::N34Result;
/// Header message, used in the help message
@@ -100,6 +103,8 @@ pub enum Commands {
// #[command(subcommand)]
// subcommands: PatchSubcommands,
// },
/// Reply to issues and patches.
Reply(ReplyArgs),
}
impl Cli {
@@ -116,6 +121,7 @@ impl CommandRunner for Commands {
match self {
Self::Repo { subcommands } => subcommands.run(options).await,
Self::Issue { subcommands } => subcommands.run(options).await,
Commands::Reply(args) => args.run(options).await,
}
}
}