Implements check command.

This commit is contained in:
Dominik Picheta 2017-10-15 15:28:29 +01:00
commit c7b97bb206
7 changed files with 94 additions and 5 deletions

View file

@ -8,6 +8,11 @@ import packageparser, common, packageinfo, options, nimscriptsupport, cli
proc execHook*(options: Options, before: bool): bool =
## Returns whether to continue.
result = true
# For certain commands hooks should not be evaluated.
if options.action.typ in noHookActions:
return
var nimbleFile = ""
try:
nimbleFile = findNimbleFile(getCurrentDir(), true)