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

Function atomic

atomic-cli/tests/it/clone_sidecar_integration_test.rs:36–43  ·  view source on GitHub ↗
(work_dir: &Path, home_dir: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

34const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
35
36fn atomic(work_dir: &Path, home_dir: &Path, args: &[&str]) -> Output {
37 Command::new(ATOMIC_BIN)
38 .args(args)
39 .current_dir(work_dir)
40 .env("HOME", home_dir)
41 .output()
42 .expect("run atomic")
43}
44
45/// Serialize a change and return `(bytes, hash)` — the object a server stores
46/// under `changes/{blake3}`.

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected