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

Method write

atomic-cli/tests/it/agent_git_commit_absorb_test.rs:151–155  ·  view source on GitHub ↗
(&self, path: &str, content: &str)

Source from the content-addressed store, hash-verified

149 }
150
151 fn write(&self, path: &str, content: &str) {
152 let full = self.root().join(path);
153 fs::create_dir_all(full.parent().unwrap()).unwrap();
154 fs::write(full, content).unwrap();
155 }
156
157 fn head(&self) -> String {
158 self.git(&["rev-parse", "HEAD"])

Calls 4

parentMethod · 0.80
writeFunction · 0.70
rootMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected