MCPcopy Create free account
hub / github.com/dashed/git-chain / run_status

Method run_status

src/git_chain/core.rs:167–185  ·  view source on GitHub ↗
(&self, show_prs: bool)

Source from the content-addressed store, hash-verified

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,

Callers 1

runFunction · 0.80

Tested by

no test coverage detected