Warn on empty filters

Closes #29
This commit is contained in:
2022-12-12 15:43:01 +01:00
parent 38bba1472e
commit 23fc942db7
4 changed files with 23 additions and 1 deletions

View File

@@ -183,6 +183,12 @@ impl Config {
filters.access.unwrap_or(false),
);
if filter.empty() {
print_warning(
"The configuration does not contain any filters, so no repos will match",
);
}
let repos = match config.provider {
RemoteProvider::Github => {
match provider::Github::new(filter, token, config.api_url) {