Gets the computer name using the COMPUTERNAME environment variable
()
| 14 | |
| 15 | /// Gets the computer name using the COMPUTERNAME environment variable |
| 16 | fn get_computer_name() -> String { |
| 17 | std::env::var("COMPUTERNAME").unwrap_or_else(|_| "localhost".to_string()) |
| 18 | } |
| 19 | |
| 20 | pub fn handle_set(input: &str) -> Result<String> { |
| 21 | // Parse input as UpdateList |