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

Function atomic

atomic-cli/tests/it/session_integration_test.rs:32–39  ·  view source on GitHub ↗
(repo_dir: &Path, home_dir: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

30const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
31
32fn atomic(repo_dir: &Path, home_dir: &Path, args: &[&str]) -> Output {
33 Command::new(ATOMIC_BIN)
34 .args(args)
35 .current_dir(repo_dir)
36 .env("HOME", home_dir)
37 .output()
38 .expect("run atomic")
39}
40
41fn init_repo(repo_dir: &Path, home_dir: &Path) {
42 assert!(atomic(repo_dir, home_dir, &["init"]).status.success());

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected