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

Function write

atomic-agent/src/hooks/manifest.rs:385–387  ·  view source on GitHub ↗
(path: &Path, value: &Value)

Source from the content-addressed store, hash-verified

383 use serde_json::json;
384
385 fn write(path: &Path, value: &Value) {
386 std::fs::write(path, serde_json::to_string_pretty(value).unwrap()).unwrap();
387 }
388
389 fn manifest_json(target: &Path, prefix: &str) -> Value {
390 json!({

Callers 15

run_pushMethod · 0.85
test_add_run_single_fileFunction · 0.85
test_add_run_directoryFunction · 0.85
test_add_run_dry_runFunction · 0.85
test_add_run_with_forceFunction · 0.85

Calls 1

unwrapMethod · 0.45