From ba8f908c291050c8192a165d439ca355d5b65fbd Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 11 Nov 2024 17:17:43 -0600 Subject: [PATCH] add some help tasks --- home/private_dot_config/nim/config.nims | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/home/private_dot_config/nim/config.nims b/home/private_dot_config/nim/config.nims index f9c6970..e616324 100644 --- a/home/private_dot_config/nim/config.nims +++ b/home/private_dot_config/nim/config.nims @@ -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"