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

Function write

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

Source from the content-addressed store, hash-verified

345 use serde_json::json;
346
347 fn write(path: &Path, value: &Value) {
348 std::fs::write(path, serde_json::to_string_pretty(value).unwrap()).unwrap();
349 }
350
351 fn manifest_json(target: &Path, prefix: &str) -> Value {
352 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