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

Function atomic

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

Source from the content-addressed store, hash-verified

20const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
21
22fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
23 Command::new(ATOMIC_BIN)
24 .args(args)
25 .current_dir(root)
26 .env("HOME", home)
27 .env("ATOMIC_HOME", home.join(".atomic"))
28 .env("GIT_CONFIG_NOSYSTEM", "1")
29 .env("GIT_AUTHOR_NAME", "T")
30 .env("GIT_AUTHOR_EMAIL", "t@example.com")
31 .env("GIT_COMMITTER_NAME", "T")
32 .env("GIT_COMMITTER_EMAIL", "t@example.com")
33 .output()
34 .expect("run atomic")
35}
36
37fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
38 let output = atomic(root, home, args);

Callers 2

atomic_okFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected