From 5f7f4f2d713025f05cbc240323b6fe47bb6dbe24 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Mon, 30 Apr 2018 00:01:25 +0300 Subject: Add PKGBUILD retrieving --- src/main.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.nim') 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 -- cgit v1.2.3-70-g09d2