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

Function atomic

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

Source from the content-addressed store, hash-verified

11const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
12
13fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
14 Command::new(ATOMIC_BIN)
15 .args(args)
16 .current_dir(root)
17 .env("HOME", home)
18 .env("ATOMIC_HOME", home.join(".atomic"))
19 .output()
20 .expect("run atomic")
21}
22
23fn init_atomic(root: &Path, home: &Path) {
24 let output = atomic(root, home, &["init", "--view", "main"]);

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected