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

Function set_config

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

Source from the content-addressed store, hash-verified

13}
14
15pub fn set_config(project_dir: &PathBuf, config_item: &str, config_value: &str) -> bool {
16 Command::new("git")
17 .current_dir(project_dir)
18 .arg("config")
19 .arg(config_item)
20 .arg(config_value)
21 .stdout(Stdio::null())
22 .status()
23 .expect("failed to execute process")
24 .success()
25}

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected