Skip to content

Commit f0ffe43

Browse files
committed
!squash filter_repos
1 parent 73f14f0 commit f0ffe43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vcspull/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import kaptan
1717
import yaml
1818

19+
from libvcs._internal.query_list import QueryList
1920
from libvcs._internal.shortcuts import create_project
2021
from libvcs._internal.types import StrPath
2122
from libvcs.sync.git import GitRemote
@@ -47,7 +48,7 @@ def __post_init__(self):
4748
self.repos.append(create_project(**repo)) # type:ignore
4849

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

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

0 commit comments

Comments
 (0)