Skip to content

Commit 22de3fc

Browse files
committed
feat(cli): Filter by config file
vcspull sync -c /home/... [tab] narrows down files
1 parent aba39e7 commit 22de3fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

vcspull/cli/sync.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515

1616
def get_repo_completions(ctx: click.core.Context, args, incomplete):
17-
configs = load_configs(find_config_files(include_home=True))
17+
configs = (
18+
load_configs(find_config_files(include_home=True))
19+
if ctx.params["config"] is None
20+
else load_configs(files=[ctx.params["config"]])
21+
)
1822
found_repos = []
1923
repo_terms = [incomplete]
2024

0 commit comments

Comments
 (0)