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

Function atomic

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

Source from the content-addressed store, hash-verified

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

Callers 1

atomic_okFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected