MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_display_name

Method get_display_name

atomic-cli/src/commands/clone/command.rs:297–302  ·  view source on GitHub ↗

Get the display name for the repository. Returns the inferred name from URL or the provided path.

(&self)

Source from the content-addressed store, hash-verified

295 ///
296 /// Returns the inferred name from URL or the provided path.
297 fn get_display_name(&self) -> String {
298 self.path
299 .clone()
300 .or_else(|| infer_repo_name(&self.url))
301 .unwrap_or_else(|| "repo".to_string())
302 }
303
304 /// Clone every remote view other than the primary `--view`.
305 ///

Callers 1

run_asyncMethod · 0.80

Calls 2

infer_repo_nameFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected