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

Function cli

libatomic/examples/replication_acceptance/main.rs:35–41  ·  view source on GitHub ↗
(binary: &Path, root: &Path, config: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

33 )
34}
35fn cli(binary: &Path, root: &Path, config: &Path, args: &[&str]) -> Result<Value> {
36 let result = attempt(binary, root, config, args)?;
37 if result["success"] != true {
38 return Err(format!("atomic {:?} failed: {}", args, result).into());
39 }
40 Ok(result)
41}
42fn fresh(binary: &Path, root: &Path, config: &Path, url: &str, view: &str) -> Result<()> {
43 drop(Repository::init(root)?);
44 cli(

Calls 1

attemptFunction · 0.85