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

Function atomic

atomic-cli/tests/it/routing_parity_test.rs:19–26  ·  view source on GitHub ↗
(repo_dir: &Path, home_dir: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

17const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
18
19fn atomic(repo_dir: &Path, home_dir: &Path, args: &[&str]) -> Output {
20 Command::new(ATOMIC_BIN)
21 .args(args)
22 .current_dir(repo_dir)
23 .env("HOME", home_dir)
24 .output()
25 .expect("run atomic")
26}
27
28fn run(repo_dir: &Path, home_dir: &Path, args: &[&str]) -> String {
29 let output = atomic(repo_dir, home_dir, args);

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected