| ff0af1ee unknown |
1 |
|
| fce44ae9 Andy McCall ↶ |
2 |
|
| 3 |
|
| 4 |
|
| 1983686f Andy McCall ↶ |
5 |
|
| fce44ae9 Andy McCall ↶ |
6 |
mod cli; |
| 1983686f Andy McCall ↶ |
7 |
|
| ff0af1ee unknown |
8 |
fn main() { |
| 5b1114a0 Andy McCall ↶ |
9 |
|
| 10 |
|
| 11 |
#[cfg(unix)] |
| 12 |
unsafe { |
| 13 |
libc::signal(libc::SIGPIPE, libc::SIG_DFL); |
| 14 |
} |
| fce44ae9 Andy McCall ↶ |
15 |
match cli::run() { |
| ff0af1ee unknown |
16 |
Ok(code) => std::process::exit(code), |
| 17 |
Err(e) => { |
| 18 |
eprintln!("error: {e:#}"); |
| 19 |
std::process::exit(1); |
| 20 |
} |
| 21 |
} |
| 22 |
} |