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

Function atomic

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

Source from the content-addressed store, hash-verified

74const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
75
76fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
77 Command::new(ATOMIC_BIN)
78 .args(args)
79 .current_dir(root)
80 .env("HOME", home)
81 .env("ATOMIC_HOME", home.join(".atomic"))
82 .env("ATOMIC_NONINTERACTIVE", "1")
83 .output()
84 .expect("run atomic")
85}
86
87fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
88 let output = atomic(root, home, args);

Callers 3

atomic_okFunction · 0.70
atomic_errFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected