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

Function atomic

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

Source from the content-addressed store, hash-verified

17const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
18
19fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
20 Command::new(ATOMIC_BIN)
21 .args(args)
22 .current_dir(root)
23 .env("HOME", home)
24 .env("ATOMIC_HOME", home.join(".atomic"))
25 .output()
26 .expect("run atomic")
27}
28
29fn assert_success(output: &Output, operation: &str) {
30 assert!(

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected