summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-04-30 19:08:10 +0200
committerCyborus <cyborus@cyborus.xyz>2024-05-07 21:24:56 +0200
commit460ac7245171a9501f8c50be20ec468e3a0e2612 (patch)
treee70836d5101dfe90530b3143651b490556333d34 /src/main.rs
parentMerge pull request 'add optional fancy output' (#53) from optional-pretty int... (diff)
downloadforgejo-cli-460ac7245171a9501f8c50be20ec468e3a0e2612.tar.xz
forgejo-cli-460ac7245171a9501f8c50be20ec468e3a0e2612.zip
add pr commands
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index abbbbd9..a6a52e7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,6 +9,7 @@ use keys::*;
mod auth;
mod issues;
+mod prs;
mod release;
mod repo;
@@ -27,6 +28,7 @@ pub enum Command {
#[clap(subcommand)]
Repo(repo::RepoCommand),
Issue(issues::IssueCommand),
+ Pr(prs::PrCommand),
#[command(name = "whoami")]
WhoAmI {
#[clap(long, short)]
@@ -50,6 +52,7 @@ async fn main() -> eyre::Result<()> {
match args.command {
Command::Repo(subcommand) => subcommand.run(&keys, host_name).await?,
Command::Issue(subcommand) => subcommand.run(&keys, host_name).await?,
+ Command::Pr(subcommand) => subcommand.run(&keys, host_name).await?,
Command::WhoAmI { remote } => {
let url = repo::RepoInfo::get_current(host_name, None, remote.as_deref())
.wrap_err("could not find host, try specifying with --host")?