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

Function atomic

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

Source from the content-addressed store, hash-verified

23const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
24
25fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
26 let mut command = Command::new(ATOMIC_BIN);
27 command.args(args);
28 // This suite exercises ordinary provenance and semantic lifecycle support.
29 if args.starts_with(&["git", "import"]) {
30 command.arg("--no-stream");
31 }
32 command
33 .current_dir(root)
34 .env("HOME", home)
35 .env("ATOMIC_HOME", home.join(".atomic"))
36 .output()
37 .expect("run atomic")
38}
39
40fn atomic_ok(root: &Path, home: &Path, args: &[&str]) {
41 let output = atomic(root, home, args);

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected