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

Function atomic

atomic-cli/tests/it/git_shim_branch_reconcile_regression.rs:28–36  ·  view source on GitHub ↗
(root: &Path, home: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

26const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
27
28fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
29 Command::new(ATOMIC_BIN)
30 .args(args)
31 .current_dir(root)
32 .env("HOME", home)
33 .env("ATOMIC_HOME", home.join(".atomic"))
34 .output()
35 .expect("run atomic")
36}
37
38fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
39 let output = atomic(root, home, args);

Callers 1

atomic_okFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected