Implements check command.
This commit is contained in:
parent
968e1a20be
commit
c7b97bb206
7 changed files with 94 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue