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

Function atomic_env

atomic-cli/tests/it/git_import_cb9b_test.rs:1053–1062  ·  view source on GitHub ↗
(root: &Path, home: &Path, args: &[&str], envs: &[(&str, &str)])

Source from the content-addressed store, hash-verified

1051
1052#[allow(dead_code)]
1053fn atomic_env(root: &Path, home: &Path, args: &[&str], envs: &[(&str, &str)]) -> Output {
1054 Command::new(ATOMIC_BIN)
1055 .args(args)
1056 .current_dir(root)
1057 .env("HOME", home)
1058 .env("ATOMIC_HOME", home.join(".atomic"))
1059 .envs(envs.iter().copied())
1060 .output()
1061 .expect("run atomic")
1062}
1063
1064/// Commit with a controlled committer date (the first deterministic shim
1065/// tie-break), for ordering-sensitive fixtures.

Calls 2

outputMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected