native-dialog 0.2.2

A library to display dialogs. Supports GNU/Linux, macOS and Windows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Error;

mod file;
mod message;

impl From<osascript::Error> for Error {
    fn from(error: osascript::Error) -> Self {
        match error {
            osascript::Error::Io(e) => Error::IoFailure(e),
            osascript::Error::Json(_) => Error::UnexpectedOutput("osascript"),
            osascript::Error::Script(s) => Error::ImplementationError(s),
        }
    }
}