MCPcopy Create free account
hub / github.com/PowerShell/DSC / remove_registry

Function remove_registry

resources/sshdconfig/src/set.rs:176–180  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

174
175#[cfg(windows)]
176fn remove_registry(name: &str) -> Result<(), SshdConfigError> {
177 let registry_helper = RegistryHelper::new(REGISTRY_PATH, Some(name.to_string()), None)?;
178 registry_helper.remove()?;
179 Ok(())
180}
181
182fn set_sshd_config(cmd_info: &mut CommandInfo) -> Result<(), SshdConfigError> {
183 // this should be its own helper function that checks that the value makes sense for the key type

Callers 1

set_default_shellFunction · 0.85

Calls 2

removeMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected