(root: &Path, home: &Path, args: &[&str])
| 11 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 12 | |
| 13 | fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output { |
| 14 | Command::new(ATOMIC_BIN) |
| 15 | .args(args) |
| 16 | .current_dir(root) |
| 17 | .env("HOME", home) |
| 18 | .env("ATOMIC_HOME", home.join(".atomic")) |
| 19 | .output() |
| 20 | .expect("run atomic") |
| 21 | } |
| 22 | |
| 23 | fn init_atomic(root: &Path, home: &Path) { |
| 24 | let output = atomic(root, home, &["init", "--view", "main"]); |
no test coverage detected