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

Function atomic

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

Source from the content-addressed store, hash-verified

16const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
17
18fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
19 Command::new(ATOMIC_BIN)
20 .args(args)
21 .current_dir(root)
22 .env("HOME", home)
23 .env("ATOMIC_HOME", home.join(".atomic"))
24 .output()
25 .expect("run atomic")
26}
27
28fn init_fixture(root: &Path, home: &Path) {
29 let git = GitRepository::init(root).expect("init Git");

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected