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

Method default_dest

atomic-cli/src/commands/sandbox.rs:152–159  ·  view source on GitHub ↗
(repo_root: &std::path::Path, name: &str)

Source from the content-addressed store, hash-verified

150
151impl Create {
152 fn default_dest(repo_root: &std::path::Path, name: &str) -> PathBuf {
153 let repo_name = repo_root
154 .file_name()
155 .map(|s| s.to_string_lossy().into_owned())
156 .unwrap_or_else(|| "repo".to_string());
157 let parent = repo_root.parent().unwrap_or(repo_root);
158 parent.join(format!("{repo_name}-sandboxes")).join(name)
159 }
160}
161
162impl Command for Create {

Callers

nothing calls this directly

Calls 2

parentMethod · 0.80
file_nameMethod · 0.45

Tested by

no test coverage detected