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

Function atomic

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

Source from the content-addressed store, hash-verified

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

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected