diff options
Diffstat (limited to 'src/bin/ngit/main.rs')
| -rw-r--r-- | src/bin/ngit/main.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs index 3686011..1dbf020 100644 --- a/src/bin/ngit/main.rs +++ b/src/bin/ngit/main.rs | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | #![cfg_attr(not(test), warn(clippy::expect_used))] | 3 | #![cfg_attr(not(test), warn(clippy::expect_used))] |
| 4 | 4 | ||
| 5 | use clap::Parser; | 5 | use clap::Parser; |
| 6 | use cli::{AccountCommands, CUSTOMISE_TEMPLATE, Cli, Commands, IssueCommands, PrCommands}; | 6 | use cli::{AccountCommands, Cli, Commands, IssueCommands, PrCommands, CUSTOMISE_TEMPLATE}; |
| 7 | 7 | ||
| 8 | mod cli; | 8 | mod cli; |
| 9 | use ngit::{ | 9 | use ngit::{ |
| @@ -138,6 +138,11 @@ async fn main() { | |||
| 138 | labels, | 138 | labels, |
| 139 | offline, | 139 | offline, |
| 140 | } => sub_commands::label::launch_pr_label(id, labels, *offline).await, | 140 | } => sub_commands::label::launch_pr_label(id, labels, *offline).await, |
| 141 | PrCommands::SetSubject { | ||
| 142 | id, | ||
| 143 | subject, | ||
| 144 | offline, | ||
| 145 | } => sub_commands::set_subject::launch_pr_set_subject(id, subject, *offline).await, | ||
| 141 | }, | 146 | }, |
| 142 | Commands::Issue(args) => match &args.issue_command { | 147 | Commands::Issue(args) => match &args.issue_command { |
| 143 | IssueCommands::List { | 148 | IssueCommands::List { |
| @@ -210,6 +215,13 @@ async fn main() { | |||
| 210 | labels, | 215 | labels, |
| 211 | offline, | 216 | offline, |
| 212 | } => sub_commands::label::launch_issue_label(id, labels, *offline).await, | 217 | } => sub_commands::label::launch_issue_label(id, labels, *offline).await, |
| 218 | IssueCommands::SetSubject { | ||
| 219 | id, | ||
| 220 | subject, | ||
| 221 | offline, | ||
| 222 | } => { | ||
| 223 | sub_commands::set_subject::launch_issue_set_subject(id, subject, *offline).await | ||
| 224 | } | ||
| 213 | }, | 225 | }, |
| 214 | Commands::Sync(args) => sub_commands::sync::launch(args).await, | 226 | Commands::Sync(args) => sub_commands::sync::launch(args).await, |
| 215 | } | 227 | } |