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

Function atomic

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

Source from the content-addressed store, hash-verified

34const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
35
36fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
37 Command::new(ATOMIC_BIN)
38 .args(args)
39 .current_dir(root)
40 .env("HOME", home)
41 .env("ATOMIC_HOME", home.join(".atomic"))
42 .output()
43 .expect("run atomic")
44}
45
46fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
47 let output = atomic(root, home, args);

Callers 1

atomic_okFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected