Implemented `tasks` command.
This commit is contained in:
parent
36273f1166
commit
0fcf0b2de9
2 changed files with 29 additions and 6 deletions
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue