repository configuration reader
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
use std::io::Result;
|
||||
|
||||
use portage::repository::RepoConfig;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
// the repo configuration
|
||||
let mut repos = RepoConfig::new()?;
|
||||
|
||||
// read the config
|
||||
repos.read_config()?;
|
||||
|
||||
// print repo config
|
||||
repos.print_repos()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user