Get the display name for the repository. Returns the inferred name from URL or the provided path.
(&self)
| 213 | /// |
| 214 | /// Returns the inferred name from URL or the provided path. |
| 215 | fn get_display_name(&self) -> String { |
| 216 | self.path |
| 217 | .clone() |
| 218 | .or_else(|| infer_repo_name(&self.url)) |
| 219 | .unwrap_or_else(|| "repo".to_string()) |
| 220 | } |
| 221 | |
| 222 | /// Async implementation of the clone command. |
| 223 | /// |
no test coverage detected