Fixed nims task execution. Added NimScript tests to tester.
This commit is contained in:
parent
20d4a59609
commit
9045b401b1
2 changed files with 26 additions and 1 deletions
|
|
@ -1105,9 +1105,10 @@ proc doAction(options: Options) =
|
|||
of actionCustom:
|
||||
# Custom command. Attempt to call a NimScript task.
|
||||
let nimbleFile = findNimbleFile(getCurrentDir(), true)
|
||||
let oldCmd = getNimScriptCommand()
|
||||
if not nimbleFile.isNimScript():
|
||||
writeHelp()
|
||||
let oldCmd = getNimScriptCommand()
|
||||
|
||||
if not execTask(nimbleFile, oldCmd):
|
||||
echo("FAILURE: Could not find task ", oldCmd, " in ", nimbleFile)
|
||||
writeHelp()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue