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

Function atomic

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

Source from the content-addressed store, hash-verified

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

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected