blob: 161baac096f156ab8acf32b8d96d8f49c55d2c14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use pom_parser::Configuration;
use std::process::ExitCode;
fn try_main() -> Result<(), Box<dyn std::error::Error>> {
let conf = Configuration::load_path("examples/conf.pom")?;
println!("{conf}");
Ok(())
}
fn main() -> ExitCode {
if let Err(e) = try_main() {
eprintln!("Error: {e}");
return ExitCode::FAILURE;
}
ExitCode::SUCCESS
}
|