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

Function atomic

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

Source from the content-addressed store, hash-verified

34const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
35
36fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
37 Command::new(ATOMIC_BIN)
38 .args(args)
39 .current_dir(root)
40 .env("HOME", home)
41 .env("ATOMIC_HOME", home.join(".atomic"))
42 .env("GIT_CONFIG_NOSYSTEM", "1")
43 .env("GIT_CONFIG_GLOBAL", "/dev/null")
44 .env("GIT_AUTHOR_NAME", "CB-13D Tests")
45 .env("GIT_AUTHOR_EMAIL", "cb13d@example.com")
46 .env("GIT_COMMITTER_NAME", "CB-13D Tests")
47 .env("GIT_COMMITTER_EMAIL", "cb13d@example.com")
48 .output()
49 .expect("run atomic")
50}
51
52fn atomic_text(output: &Output) -> String {
53 format!(

Callers 5

atomic_okFunction · 0.70
atomic_failFunction · 0.70
watch_onceMethod · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected