Files
ruport/examples/config_reader.rs
2026-09-09 18:59:57 +02:00

21 lines
385 B
Rust

use std::io::Result;
use std::process::exit;
use portage::util::logger::logger_init;
use portage::config::PortageConfig;
fn main() -> Result<()> {
match logger_init(log::LevelFilter::Debug) {
Ok(_) => {},
Err(e) => {
eprintln!("{e}");
exit(-1);
}
}
let cfg = PortageConfig::new()?;
cfg.display_config();
Ok(())
}