Get the display name for the repository. Returns the inferred name from URL or the provided path.
(&self)
| 278 | /// |
| 279 | /// Returns the inferred name from URL or the provided path. |
| 280 | fn get_display_name(&self) -> String { |
| 281 | self.path |
| 282 | .clone() |
| 283 | .or_else(|| infer_repo_name(&self.url)) |
| 284 | .unwrap_or_else(|| "repo".to_string()) |
| 285 | } |
| 286 | |
| 287 | /// Async implementation of the clone command. |
| 288 | /// |
no test coverage detected