Implemented `tasks` command.

This commit is contained in:
Dominik Picheta 2015-12-23 13:33:14 +00:00
commit 0fcf0b2de9
2 changed files with 29 additions and 6 deletions

View file

@ -162,4 +162,12 @@ proc setNimScriptCommand*(command: string) =
proc hasTaskRequestedCommand*(): bool =
## Determines whether the last executed task used ``setCommand``
return getNimScriptCommand() != internalCmd
return getNimScriptCommand() != internalCmd
proc listTasks*(scriptName: string) =
setNimScriptCommand("help")
execScript(scriptName)
# TODO: Make the 'task' template generate explicit data structure containing
# all the task names + descriptions.
cleanup()