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

Function atomic

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

Source from the content-addressed store, hash-verified

23}
24
25fn atomic(root: &Path, home: &Path, args: &[&str]) {
26 let output = Command::new(env!("CARGO_BIN_EXE_atomic"))
27 .args(args)
28 .current_dir(root)
29 .env("ATOMIC_HOME", home.join(".atomic"))
30 .env("ATOMIC_NONINTERACTIVE", "1")
31 .env("NO_COLOR", "1")
32 .output()
33 .unwrap();
34 assert!(
35 output.status.success(),
36 "atomic {args:?} failed:\n{}\n{}",
37 String::from_utf8_lossy(&output.stdout),
38 String::from_utf8_lossy(&output.stderr)
39 );
40}
41
42impl Fixture {
43 fn new() -> Self {

Callers 2

newMethod · 0.70
atomicMethod · 0.70

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected