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

Function atomic

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

Source from the content-addressed store, hash-verified

52const FILES_PER_DIR: usize = 1_000;
53
54fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
55 Command::new(ATOMIC_BIN)
56 .args(args)
57 .current_dir(root)
58 .env("HOME", home)
59 .env("ATOMIC_HOME", home.join(".atomic"))
60 .env("GIT_AUTHOR_NAME", "Budget Bench")
61 .env("GIT_AUTHOR_EMAIL", "bench@example.com")
62 .env("GIT_COMMITTER_NAME", "Budget Bench")
63 .env("GIT_COMMITTER_EMAIL", "bench@example.com")
64 .output()
65 .expect("run atomic")
66}
67
68fn atomic_text(output: &Output) -> String {
69 format!(

Callers 2

atomic_okFunction · 0.70
timed_atomicFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected