Function
atomic
(root: &std::path::Path, home: &std::path::Path, args: &[&str])
Source from the content-addressed store, hash-verified
| 23 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 24 | |
| 25 | fn atomic(root: &std::path::Path, home: &std::path::Path, args: &[&str]) -> Output { |
| 26 | Command::new(ATOMIC_BIN) |
| 27 | .args(args) |
| 28 | .current_dir(root) |
| 29 | .env("HOME", home) |
| 30 | .env("ATOMIC_HOME", home.join(".atomic")) |
| 31 | .output() |
| 32 | .expect("run atomic") |
| 33 | } |
| 34 | |
| 35 | #[allow(dead_code)] |
| 36 | fn atomic_text(output: &Output) -> String { |
Tested by
no test coverage detected