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

Function resource_id

lib/dsc-lib/src/util.rs:227–234  ·  view source on GitHub ↗
(type_name: &str, name: &str)

Source from the content-addressed store, hash-verified

225/// A string that holds the resource ID in the format "namespace/type:name".
226#[must_use]
227pub fn resource_id(type_name: &str, name: &str) -> String {
228 let mut result = String::new();
229 result.push_str(type_name);
230 result.push(':');
231 let encoded = urlencoding::encode(name);
232 result.push_str(&encoded);
233 result
234}
235
236pub fn canonicalize_which(executable: &str, cwd: Option<&Path>) -> Result<String, DscError> {
237 // Use PathBuf to handle path separators robustly

Callers 5

invokeMethod · 0.85
invoke_getMethod · 0.85
invoke_setMethod · 0.85
invoke_testMethod · 0.85
invoke_exportMethod · 0.85

Calls 1

newFunction · 0.50

Tested by

no test coverage detected