(&mut self)
| 53 | } |
| 54 | |
| 55 | fn scope_choice(&mut self) -> Result<()> { |
| 56 | let scope_choice = self.prompt.select( |
| 57 | &self.pattern.msg.commit_scope, |
| 58 | self.pattern.commit_scopes.clone(), |
| 59 | )?; |
| 60 | if scope_choice == "custom" { |
| 61 | let custom_scope = self |
| 62 | .prompt |
| 63 | .required_input("Enter custom scope:", "Custom scope")?; |
| 64 | self.commit_builder.set_scope(&custom_scope); |
| 65 | } else if scope_choice != "none" { |
| 66 | self.commit_builder.set_scope(&scope_choice); |
| 67 | } |
| 68 | Ok(()) |
| 69 | } |
| 70 | |
| 71 | fn description(&mut self) -> Result<()> { |
| 72 | let description = self |
no test coverage detected