MCPcopy Create free account
hub / github.com/Wulf/create-rust-app / check_config

Function check_config

crates/create-rust-app_cli/src/utils/git.rs:4–13  ·  view source on GitHub ↗
(project_dir: &PathBuf, config_item: &str)

Source from the content-addressed store, hash-verified

2use std::process::{Command, Stdio};
3
4pub 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
15pub fn set_config(project_dir: &PathBuf, config_item: &str, config_value: &str) -> bool {
16 Command::new("git")

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected