From 557e81fdaaa18b2d703f1fc98074f5cb5c992949 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 20 Oct 2024 12:44:36 -0500 Subject: [PATCH] remove dead code --- home/private_dot_config/nim/config.nims | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/home/private_dot_config/nim/config.nims b/home/private_dot_config/nim/config.nims index ce37326..f9c6970 100644 --- a/home/private_dot_config/nim/config.nims +++ b/home/private_dot_config/nim/config.nims @@ -1,4 +1,7 @@ -import std/[os, strutils, strformat] +# import system/nimscript +import std/[ + os, strutils, strformat +] switch("hint","[Conf]:off") @@ -26,14 +29,9 @@ proc getGitRootMaybe(): string = else: result = projectDir() -let - root = getGitRootMaybe() - (_, pkgName) = root.splitPath() - srcFile = root / "src" / (pkgName & ".nim") - # formatter = "nimpretty" +const formatter = "nph" - proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") = let srcFiles = gorgeExCd(fmt"nimgrep --filenames -r '{pattern}' --noColor").output.split("\n")[0..^2] for file in srcFiles: @@ -58,7 +56,7 @@ task i, "install package": setCommand("nop") -task lexidInc, "bump lexigraphic id": +task lexidInc, "bump lexicographic id": let (vsn, code) = gorgeExCd("git describe --tags --always --dirty=-dev") if code != 0: echo "is this a git repo?" @@ -90,3 +88,6 @@ task lexidInc, "bump lexigraphic id": task _,"_______________": discard + +task h, "": + exec "nim help"