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

Function shell_single_quote_path

perro_source/devtools/perro_cli/src/install.rs:104–108  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

102
103 let existing = if profile_path.exists() {
104 fs::read_to_string(profile_path)
105 .map_err(|err| format!("failed to read {}: {err}", profile_path.display()))?
106 } else {
107 String::new()
108 };
109
110 let updated = replace_or_append_snippet(&existing, snippet)?;
111 fs::write(profile_path, updated)

Callers 1

install_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected