config reader start
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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(())
|
||||
}
|
||||
Reference in New Issue
Block a user