Function
check_config
(project_dir: &PathBuf, config_item: &str)
Source from the content-addressed store, hash-verified
| 2 | use std::process::{Command, Stdio}; |
| 3 | |
| 4 | pub fn check_config(project_dir: &PathBuf, config_item: &str) -> bool { |
| 5 | Command::new("git") |
| 6 | .current_dir(project_dir) |
| 7 | .arg("config") |
| 8 | .arg(config_item) |
| 9 | .stdout(Stdio::null()) |
| 10 | .status() |
| 11 | .expect("failed to execute process") |
| 12 | .success() |
| 13 | } |
| 14 | |
| 15 | pub fn set_config(project_dir: &PathBuf, config_item: &str, config_value: &str) -> bool { |
| 16 | Command::new("git") |
Tested by
no test coverage detected