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

Function atomic

atomic-cli/tests/it/agent_repair_cb12a_test.rs:12–20  ·  view source on GitHub ↗
(root: &std::path::Path, home: &std::path::Path, args: &[&str])

Source from the content-addressed store, hash-verified

10const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
11
12fn atomic(root: &std::path::Path, home: &std::path::Path, args: &[&str]) -> Output {
13 Command::new(ATOMIC_BIN)
14 .args(args)
15 .current_dir(root)
16 .env("HOME", home)
17 .env("ATOMIC_HOME", home.join(".atomic"))
18 .output()
19 .expect("run atomic")
20}
21
22fn atomic_ok(root: &std::path::Path, home: &std::path::Path, args: &[&str]) -> String {
23 let output = atomic(root, home, args);

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected