aboutsummaryrefslogtreecommitdiff
path: root/src/config.nim
diff options
context:
space:
mode:
authorkitsunyan2018-04-08 21:37:38 +0000
committerkitsunyan2018-04-08 21:37:38 +0000
commite1064498261c6a95d18ab79579ecdacdbbf44d55 (patch)
tree49c09a6faca895255d334f6d6baa06365e52d514 /src/config.nim
parent72b8161f2f37a0a6b091e300810a40e9a775c64b (diff)
Allow to automatically exec pakku via sudo
Diffstat (limited to 'src/config.nim')
-rw-r--r--src/config.nim4
1 files changed, 3 insertions, 1 deletions
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)