2021-11-23 18:35:34 +00:00
|
|
|
use std::process;
|
2021-11-21 13:54:30 +00:00
|
|
|
|
2021-11-26 09:08:59 +00:00
|
|
|
/// Begin the `nyf` run. Catch any application errors, print them to `stderr` and return an error
|
|
|
|
/// exit code (`1`).
|
2021-11-22 17:52:59 +00:00
|
|
|
fn main() {
|
2021-11-23 18:35:34 +00:00
|
|
|
if let Err(e) = nyf::run() {
|
2021-11-23 18:40:01 +00:00
|
|
|
eprintln!("{}", e);
|
2021-11-23 18:35:34 +00:00
|
|
|
process::exit(1);
|
2021-11-21 13:54:30 +00:00
|
|
|
}
|
2020-05-08 17:22:06 +00:00
|
|
|
}
|