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

Function atomic

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

Source from the content-addressed store, hash-verified

38 b"[features]\ndefault = [\"b\"]\nremote = []\nteams = [\"t\"]\n\n[package]\nname = \"x\"\nversion = \"1\"\n";
39
40fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
41 Command::new(ATOMIC_BIN)
42 .args(args)
43 .current_dir(root)
44 .env("HOME", home)
45 .env("ATOMIC_HOME", home.join(".atomic"))
46 .output()
47 .expect("run atomic")
48}
49
50fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
51 let output = atomic(root, home, args);

Callers 1

atomic_okFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected