Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CohleRustW committed Nov 30, 2023
1 parent e173f40 commit 15688f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Empty file added src/pr.rs
Empty file.
4 changes: 3 additions & 1 deletion src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl View for ViewHandler {
format!("gh pr view {} --web", pr["number"].as_i64().unwrap());
debug!("command: {}", &command);
self.run_command_and_check_code(&command);
return;
std::process::exit(0);
}
}
}
Expand All @@ -76,10 +76,12 @@ impl View for ViewHandler {
fn open_issue_web(&self, issue_id: &str) {
let command = format!("gh issue view {} --web", issue_id);
self.run_command_and_check_code(&command);
std::process::exit(0);
}
fn open_default_web(&self) {
let command = "gh issue list --web".to_string();
self.run_command_and_check_code(&command);
std::process::exit(0);
}
}

Expand Down

0 comments on commit 15688f7

Please sign in to comment.