MCPcopy Create free account
hub / github.com/PerroEngine/Perro / resolve_content_prefix

Function resolve_content_prefix

perro_source/devtools/perro_cli/src/scaffold.rs:189–195  ·  view source on GitHub ↗
(args: &[String])

Source from the content-addressed store, hash-verified

187}
188
189fn resolve_content_prefix(args: &[String]) -> Result<String, String> {
190 if let Some(raw_dlc) = parse_flag_value(args, "--dlc") {
191 let dlc = validate_dlc_name(&raw_dlc)?;
192 return Ok(format!("dlc://{dlc}/"));
193 }
194 Ok("res://".to_string())
195}
196
197fn write_new_file(path: &Path, contents: &str) -> Result<(), String> {
198 if path.exists() {

Callers 4

new_script_commandFunction · 0.85
new_scene_commandFunction · 0.85
new_animation_commandFunction · 0.85
new_panimtree_commandFunction · 0.85

Calls 2

parse_flag_valueFunction · 0.70
validate_dlc_nameFunction · 0.70

Tested by

no test coverage detected