(&self, repo: &mut Repository, name: &str, confirm: F)
| 166 | |
| 167 | impl Delete { |
| 168 | fn execute_with_repo<F>(&self, repo: &mut Repository, name: &str, confirm: F) -> CliResult<()> |
| 169 | where |
| 170 | F: FnOnce(&str) -> CliResult<bool>, |
| 171 | { |
| 172 | self.execute_with_repo_gated(repo, name, false, confirm) |
| 173 | } |
| 174 | |
| 175 | /// Validations that must hold on every path, plus (optionally) the |
| 176 | /// orphan warning and acknowledgement prompt. |