(&self, show_prs: bool)
| 165 | } |
| 166 | |
| 167 | pub fn run_status(&self, show_prs: bool) -> Result<(), Error> { |
| 168 | let branch_name = self.get_current_branch_name()?; |
| 169 | println!("On branch: {}", branch_name.bold()); |
| 170 | println!(); |
| 171 | |
| 172 | let results = Branch::get_branch_with_chain(self, &branch_name)?; |
| 173 | |
| 174 | match results { |
| 175 | BranchSearchResult::NotPartOfAnyChain => { |
| 176 | self.display_branch_not_part_of_chain_error(&branch_name); |
| 177 | process::exit(1); |
| 178 | } |
| 179 | BranchSearchResult::Branch(branch) => { |
| 180 | branch.display_status(self, show_prs)?; |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | Ok(()) |
| 185 | } |
| 186 | |
| 187 | pub fn init_chain( |
| 188 | &self, |
no test coverage detected