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

Function fresh

libatomic/examples/replication_acceptance/main.rs:42–51  ·  view source on GitHub ↗
(binary: &Path, root: &Path, config: &Path, url: &str, view: &str)

Source from the content-addressed store, hash-verified

40 Ok(result)
41}
42fn fresh(binary: &Path, root: &Path, config: &Path, url: &str, view: &str) -> Result<()> {
43 drop(Repository::init(root)?);
44 cli(
45 binary,
46 root,
47 config,
48 &["pull", url, "--from-view", view, "--to-view", view],
49 )?;
50 Ok(())
51}
52fn record(report: &mut Value, name: &str, value: Value) {
53 report.as_object_mut().unwrap().insert(name.into(), value);
54 if let Some(root) = report["root"].as_str() {

Callers 1

runFunction · 0.85

Calls 2

cliFunction · 0.70
initFunction · 0.50

Tested by

no test coverage detected