bear-rs 0.1.0

Rust library for reading and writing Bear.app notes via the local SQLite database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Post the Darwin notification that tells Bear to refresh its UI after a
/// local database write.
///
/// Uses `notifyutil -p` (ships with macOS). If the tool is absent or fails
/// the write still lands; Bear picks it up on the next file-watch tick.
pub fn request_app_refresh() {
    let _ = std::process::Command::new("notifyutil")
        .arg("-p")
        .arg("net.shinyfrog.bear.cli.didRequestRefresh")
        .stdout(std::process::Stdio::null())
        .stderr(std::process::Stdio::null())
        .status();
}