Changed to a more readable name

main
Michal 2 years ago
parent 2f70e06e85
commit 447aab6a04
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

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

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

Loading…
Cancel
Save