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

Function atomic

atomic-cli/tests/it/provenance_integration_test.rs:201–208  ·  view source on GitHub ↗

Run `atomic ` inside `repo_dir` with `HOME` pointed at `home_dir` so the identity store resolves to a test-owned location.

(repo_dir: &Path, home_dir: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

199/// Run `atomic <args>` inside `repo_dir` with `HOME` pointed at `home_dir` so the
200/// identity store resolves to a test-owned location.
201fn atomic(repo_dir: &Path, home_dir: &Path, args: &[&str]) -> Output {
202 Command::new(ATOMIC_BIN)
203 .args(args)
204 .current_dir(repo_dir)
205 .env("HOME", home_dir)
206 .output()
207 .expect("run atomic")
208}
209
210/// A prov node so the graph is non-trivial (the projection ignores nodes, but a
211/// real graph carries them).

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected