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

Function atomic

atomic-cli/tests/it/working_copy_preservation_test.rs:9–17  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

7use tempfile::TempDir;
8
9fn atomic(root: &Path, args: &[&str]) -> Output {
10 Command::new(env!("CARGO_BIN_EXE_atomic"))
11 .args(args)
12 .current_dir(root)
13 .env("ATOMIC_SERVICE", "local")
14 .env_remove("ATOMIC_RPC")
15 .output()
16 .unwrap()
17}
18
19fn run(root: &Path, args: &[&str]) -> String {
20 let out = atomic(root, args);

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected