MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / save

Method save

cli/src/pkg.rs:32–35  ·  view source on GitHub ↗

Write the manifest back as pretty JSON with a trailing newline.

(&self, path: &Path)

Source from the content-addressed store, hash-verified

30
31 /// Write the manifest back as pretty JSON with a trailing newline.
32 fn save(&self, path: &Path) -> Result<()> {
33 let text = serde_json::to_string_pretty(self)?;
34 std::fs::write(path, format!("{text}\n")).with_context(|| format!("writing {}", path.display()))
35 }
36}
37
38/* Official package registry. Mirrors the runtime's built-in default manifest. */

Callers 5

addFunction · 0.80
removeFunction · 0.80
insertAtCaretFunction · 0.80
createEditorFunction · 0.80
copyPayloadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected