Skip to content

Commit

Permalink
!squash filter_repos
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Nov 1, 2022
1 parent e88f260 commit 637659c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vcspull/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import yaml

from libvcs._internal.query_list import QueryList
from libvcs._internal.shortcuts import create_project
from libvcs._internal.types import StrPath
from libvcs.sync.git import GitRemote
Expand Down Expand Up @@ -46,7 +47,7 @@ def __post_init__(self):
self.repos.append(create_project(**repo)) # type:ignore

def filter_repos(self, **kwargs) -> list["Repo"]:
return [] # filter code
return QueryList(self.repos).filter(**kwargs)

@classmethod
def from_yaml_file(cls, file_path: pathlib.Path, cwd=pathlib.Path.cwd()):
Expand Down

0 comments on commit 637659c

Please sign in to comment.