diff options
Diffstat (limited to 'src/bin/ngit/main.rs')
| -rw-r--r-- | src/bin/ngit/main.rs | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs index 4c1aa75..28bf1da 100644 --- a/src/bin/ngit/main.rs +++ b/src/bin/ngit/main.rs | |||
| @@ -57,12 +57,20 @@ async fn main() { | |||
| 57 | Commands::Pr(args) => match &args.pr_command { | 57 | Commands::Pr(args) => match &args.pr_command { |
| 58 | PrCommands::List { | 58 | PrCommands::List { |
| 59 | status, | 59 | status, |
| 60 | labels, | ||
| 60 | json, | 61 | json, |
| 61 | id, | 62 | id, |
| 62 | offline, | 63 | offline, |
| 63 | } => { | 64 | } => { |
| 64 | sub_commands::list::launch(status.clone(), *json, false, id.clone(), *offline) | 65 | sub_commands::list::launch( |
| 65 | .await | 66 | status.clone(), |
| 67 | labels.clone(), | ||
| 68 | *json, | ||
| 69 | false, | ||
| 70 | id.clone(), | ||
| 71 | *offline, | ||
| 72 | ) | ||
| 73 | .await | ||
| 66 | } | 74 | } |
| 67 | PrCommands::View { | 75 | PrCommands::View { |
| 68 | id, | 76 | id, |
| @@ -72,6 +80,7 @@ async fn main() { | |||
| 72 | } => { | 80 | } => { |
| 73 | sub_commands::list::launch( | 81 | sub_commands::list::launch( |
| 74 | "open,draft,closed,applied".to_string(), | 82 | "open,draft,closed,applied".to_string(), |
| 83 | vec![], | ||
| 75 | *json, | 84 | *json, |
| 76 | *comments, | 85 | *comments, |
| 77 | Some(id.clone()), | 86 | Some(id.clone()), |
| @@ -122,14 +131,14 @@ async fn main() { | |||
| 122 | Commands::Issue(args) => match &args.issue_command { | 131 | Commands::Issue(args) => match &args.issue_command { |
| 123 | IssueCommands::List { | 132 | IssueCommands::List { |
| 124 | status, | 133 | status, |
| 125 | hashtag, | 134 | labels, |
| 126 | json, | 135 | json, |
| 127 | id, | 136 | id, |
| 128 | offline, | 137 | offline, |
| 129 | } => { | 138 | } => { |
| 130 | sub_commands::issue_list::launch( | 139 | sub_commands::issue_list::launch( |
| 131 | status.clone(), | 140 | status.clone(), |
| 132 | hashtag.clone(), | 141 | labels.clone(), |
| 133 | *json, | 142 | *json, |
| 134 | false, | 143 | false, |
| 135 | id.clone(), | 144 | id.clone(), |
| @@ -145,7 +154,7 @@ async fn main() { | |||
| 145 | } => { | 154 | } => { |
| 146 | sub_commands::issue_list::launch( | 155 | sub_commands::issue_list::launch( |
| 147 | "open,draft,closed,applied".to_string(), | 156 | "open,draft,closed,applied".to_string(), |
| 148 | None, | 157 | vec![], |
| 149 | *json, | 158 | *json, |
| 150 | *comments, | 159 | *comments, |
| 151 | Some(id.clone()), | 160 | Some(id.clone()), |