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

Function atomic

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

Source from the content-addressed store, hash-verified

35const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
36
37fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
38 Command::new(ATOMIC_BIN)
39 .args(args)
40 .current_dir(root)
41 .env("HOME", home)
42 .env("ATOMIC_HOME", home.join(".atomic"))
43 .output()
44 .expect("run atomic")
45}
46
47fn assert_success(output: &Output, context: &str) {
48 assert!(

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected