Files
ruport/examples/repo_conf_reader.rs

16 lines
274 B
Rust

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(())
}