get_via_macos_shell

Function get_via_macos_shell 

Source
pub fn get_via_macos_shell() -> Result<String, MachineIdError>
Expand description

Retrieves raw format of UUID retrieval.

ยงExamples

#[cfg(target_os = "macos")]
let uuid_untrimmed = machine_uuid::get_via_macos_shell();

// # ioreg -d2 -c IOPlatformExpertDevice | awk -F\" '/IOPlatformUUID/{print $(NF-1)}'
// F7FA2B78-F7D4-5B1B-A4E3-BACB1BBD95A1