# sudo-prompt-rs
`sudo-prompt-rs` provides a dialog prompt to run a command using `sudo`. This is a rewrite of [sudo-prompt](https://github.com/jorangreef/sudo-prompt/) in Rust.
Mac:
Linux:
Windows:
TODO: new images here
## Usage
```rs
use sudo_prompt::{Opts, SudoPrompt};
fn main() {
// TODO provide "new" method
let prompt = SudoPrompt {};
let resp = prompt.exec(&Opts {
cmd: r#"env"#.to_string(),
env: None,
name: None,
}).unwrap();
}
```
TODO: example here