add some help tasks
This commit is contained in:
parent
de8f759b13
commit
ba8f908c29
1 changed files with 15 additions and 2 deletions
|
@ -85,9 +85,22 @@ task lexidInc, "bump lexicographic id":
|
|||
else:
|
||||
echo "next version is: ", newVersion,"\n"
|
||||
|
||||
|
||||
task h, "":
|
||||
exec "nim help"
|
||||
|
||||
const name = projectDir().lastPathPart
|
||||
|
||||
task b, fmt"build binary, default: {name}":
|
||||
switch("outdir", "bin")
|
||||
if projectName() == "":
|
||||
let name = projectDir().lastPathPart
|
||||
setCommand "c", "src/" & name & ".nim"
|
||||
else:
|
||||
setCommand "c",""
|
||||
|
||||
|
||||
task _,"_______________":
|
||||
discard
|
||||
|
||||
|
||||
task h, "":
|
||||
exec "nim help"
|
||||
|
|
Loading…
Reference in a new issue