job: add processing blacklist to global config

This commit is contained in:
Bruno BELANYI 2021-03-30 16:11:36 +00:00
parent 209e1e58c7
commit 9de7c783ae
4 changed files with 51 additions and 0 deletions

View file

@ -10,4 +10,8 @@ pub(crate) struct GlobalSettings {
/// List of remote stems to use for every repository
#[serde(default)]
pub additional_remotes: Vec<RepoUrl>,
/// List of regexes, if a repository's name matches any of the, it is not mirrored by `lohr`
/// even if it contains a `.lorh` file.
#[serde(with = "serde_regex")]
pub blacklist: Vec<regex::Regex>,
}