Changed to a more readable name

main
Michal 2 years ago
parent 08e0a64779
commit 505a48adfe

@ -47,7 +47,7 @@ pub struct ConfigModeWorkspace {}
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct ConfigRepositories { pub struct ConfigRepositories {
pub name: Vec<String>, pub repos: Vec<String>,
pub urls: HashMap<String, String>, pub urls: HashMap<String, String>,
} }

@ -39,7 +39,7 @@ pub fn read_cfg(verbose: bool) -> Config {
let mut expanded_repos: Vec<Repo> = vec![]; let mut expanded_repos: Vec<Repo> = vec![];
// Parsing repos from the config file // Parsing repos from the config file
for x in config.repositories.name { for x in config.repositories.repos {
log!(verbose, "Parsing repo: {:?}", x); log!(verbose, "Parsing repo: {:?}", x);
// Splits the repo name and index inta a SplitRepo struct // Splits the repo name and index inta a SplitRepo struct
let split: Vec<&str> = x.split(':').collect(); let split: Vec<&str> = x.split(':').collect();

Loading…
Cancel
Save