aboutsummaryrefslogtreecommitdiff
path: root/src/main.nim
diff options
context:
space:
mode:
authorkitsunyan2018-04-29 21:01:25 +0000
committerkitsunyan2018-04-29 21:01:25 +0000
commit5f7f4f2d713025f05cbc240323b6fe47bb6dbe24 (patch)
treec67d82e2a19f101f6815fdb20bc97cf3e825076a /src/main.nim
parent10e4e09cfc70730c1206e420d9bb337d37939b30 (diff)
Add PKGBUILD retrieving
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim
index fbf3364..bf32cdd 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -4,8 +4,9 @@ import
import
"feature/syncinfo",
- "feature/syncsearch",
"feature/syncinstall",
+ "feature/syncsearch",
+ "feature/syncsource",
"feature/localquery"
proc passValidation(args: seq[Argument], config: Config,
@@ -82,6 +83,8 @@ proc handleSync(args: seq[Argument], config: Config): int =
elif syncArgs.check(%%%"search") and
syncArgs.checkOpGroup(OpGroup.syncSearch):
handleSyncSearch(args, config)
+ elif syncArgs.check(%%%"source"):
+ handleSyncSource(args, config)
elif syncArgs.checkOpGroup(OpGroup.syncInstall) and
(args.check(%%%"sysupgrade") or args.targets.len > 0):
let printMode = args.check(%%%"print") or args.check(%%%"print-format")
@@ -185,6 +188,7 @@ proc handleHelp(operation: OperationType) =
printHelp(%%%"build", none(string), tr"build targets from source")
printHelp(%%%"keyserver", some("name"), tr"use name as keyserver to receive keys from")
printHelp(%%%"noaur", none(string), tr"disable all AUR operations")
+ printHelp(%%%"source", none(string), tr"retrieve PKGBUILD source")
else:
discard