add some help tasks

This commit is contained in:
Daylin Morgan 2024-11-11 17:17:43 -06:00
parent de8f759b13
commit ba8f908c29
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -85,9 +85,22 @@ task lexidInc, "bump lexicographic id":
else: else:
echo "next version is: ", newVersion,"\n" 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 _,"_______________": task _,"_______________":
discard discard
task h, "":
exec "nim help"