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

Function atomic

atomic-cli/tests/provenance_integration_test.rs:45–52  ·  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

43/// Run `atomic <args>` inside `repo_dir` with `HOME` pointed at `home_dir` so the
44/// identity store resolves to a test-owned location.
45fn atomic(repo_dir: &Path, home_dir: &Path, args: &[&str]) -> Output {
46 Command::new(ATOMIC_BIN)
47 .args(args)
48 .current_dir(repo_dir)
49 .env("HOME", home_dir)
50 .output()
51 .expect("run atomic")
52}
53
54/// A prov node so the graph is non-trivial (the projection ignores nodes, but a
55/// real graph carries them).

Calls

no outgoing calls

Tested by

no test coverage detected