aboutsummaryrefslogtreecommitdiff
path: root/src/main.nim
diff options
context:
space:
mode:
authorkitsunyan2018-06-06 23:35:28 +0000
committerkitsunyan2018-06-06 23:35:28 +0000
commitf227d1088f6a8aee3654804b5fd0110e15532c5b (patch)
tree1b865f5437417a716b281e27cb69dfa8c47e8189 /src/main.nim
parentc5a91071172e206b5d02bed66e893469bde17629 (diff)
Add support for "-Sc" to clean package repositories
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.nim b/src/main.nim
index 54fbb08..a149000 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -3,11 +3,12 @@ import
args, config, format, pacman, utils
import
+ "feature/localquery",
+ "feature/syncclean",
"feature/syncinfo",
"feature/syncinstall",
"feature/syncsearch",
- "feature/syncsource",
- "feature/localquery"
+ "feature/syncsource"
proc execSudo*(args: seq[Argument]): int =
execResult(sudoPrefix & getAppFilename() &
@@ -81,6 +82,8 @@ proc handleSync(args: seq[Argument], config: Config): int =
printError(config.color, trp("invalid option: '%s' and '%s' may not be used together\n") %
["--" & left, "--" & right])
1
+ elif syncArgs.check(%%%"clean"):
+ handleSyncClean(args, config)
elif syncArgs.check(%%%"info") and
syncArgs.checkOpGroup(OpGroup.syncQuery):
handleSyncInfo(args, config)