(type_name: &str, name: &str)
| 225 | /// A string that holds the resource ID in the format "namespace/type:name". |
| 226 | #[must_use] |
| 227 | pub 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 | |
| 236 | pub fn canonicalize_which(executable: &str, cwd: Option<&Path>) -> Result<String, DscError> { |
| 237 | // Use PathBuf to handle path separators robustly |
no test coverage detected