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

Function atomic

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

Source from the content-addressed store, hash-verified

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

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected