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

Method get_display_name

atomic-cli/src/commands/clone/command.rs:215–220  ·  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

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 ///

Callers 1

run_asyncMethod · 0.80

Calls 2

infer_repo_nameFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected