Skip to content

Commit 662fa8c

Browse files
committed
!squash filter_repos
1 parent 08386a6 commit 662fa8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vcspull/config.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import yaml
1616

17+
from libvcs._internal.query_list import QueryList
1718
from libvcs._internal.shortcuts import create_project
1819
from libvcs._internal.types import StrPath
1920
from libvcs.sync.git import GitRemote
@@ -46,7 +47,7 @@ def __post_init__(self):
4647
self.repos.append(create_project(**repo)) # type:ignore
4748

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

5152
@classmethod
5253
def from_yaml_file(cls, file_path: pathlib.Path, cwd=pathlib.Path.cwd()):

0 commit comments

Comments
 (0)