aboutsummaryrefslogtreecommitdiff
path: root/src/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/__main__.py b/src/__main__.py
index d38d550..913acff 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -26,8 +26,10 @@ if len(sys.argv) == 1:
match sys.argv[1]:
case "sync" | "s":
options = list(repos.keys())
- name = questionary.select("which repository", options).ask()
- sync_repos = [repos[name]]
+ name = questionary.select("which repository", ["all", *options]).ask()
+ sync_repos = repos.values()
+ if name != "all":
+ sync_repos = [repos[name]]
sync(sync_repos)
@@ -108,7 +110,8 @@ match sys.argv[1]:
print("no matches")
exit(0)
- copy.copy([use])
+ cmd = copy.copy([use])
+ eexec(cmd)
case "r" | "rm":
assert len(sys.argv) >= 3