MCPcopy Create free account
hub / github.com/Recordscript/recordscript / main

Function main

libs/hbb_common/examples/system_message.rs:7–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5use hbb_common::platform::macos;
6
7fn main() {
8 #[cfg(target_os = "linux")]
9 let res = linux::system_message("test title", "test message", true);
10 #[cfg(target_os = "macos")]
11 let res = macos::alert(
12 "System Preferences".to_owned(),
13 "warning".to_owned(),
14 "test title".to_owned(),
15 "test message".to_owned(),
16 ["Ok".to_owned()].to_vec(),
17 );
18 #[cfg(any(target_os = "linux", target_os = "macos"))]
19 println!("result {:?}", &res);
20}

Callers

nothing calls this directly

Calls 2

system_messageFunction · 0.85
alertFunction · 0.85

Tested by

no test coverage detected