(repo_root: &std::path::Path, name: &str)
| 150 | |
| 151 | impl 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 | |
| 162 | impl Command for Create { |