From e1064498261c6a95d18ab79579ecdacdbbf44d55 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Mon, 9 Apr 2018 00:37:38 +0300 Subject: Allow to automatically exec pakku via sudo --- src/config.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/config.nim') diff --git a/src/config.nim b/src/config.nim index 8b0e0f5..a6f65b9 100644 --- a/src/config.nim +++ b/src/config.nim @@ -32,6 +32,7 @@ type aurComments*: bool checkIgnored*: bool printAurNotFound*: bool + sudoExec*: bool viewNoDefault*: bool preBuildCommand*: Option[string] @@ -118,6 +119,7 @@ proc obtainConfig*(config: PacmanConfig): Config = let aurComments = options.hasKey("AurComments") let checkIgnored = options.hasKey("CheckIgnored") let printAurNotFound = options.hasKey("PrintAurNotFound") + let sudoExec = options.hasKey("SudoExec") let viewNoDefault = options.hasKey("ViewNoDefault") let preBuildCommand = options.opt("PreBuildCommand") @@ -126,4 +128,4 @@ proc obtainConfig*(config: PacmanConfig): Config = verbosePkgList: config.verbosePkgList, pgpKeyserver: config.pgpKeyserver, ignorePkgs: config.ignorePkgs, ignoreGroups: config.ignoreGroups, aurComments: aurComments, checkIgnored: checkIgnored, printAurNotFound: printAurNotFound, - viewNoDefault: viewNoDefault, preBuildCommand: preBuildCommand) + sudoExec: sudoExec, viewNoDefault: viewNoDefault, preBuildCommand: preBuildCommand) -- cgit v1.2.3-70-g09d2