remove dead code
This commit is contained in:
parent
7287995da7
commit
557e81fdaa
1 changed files with 9 additions and 8 deletions
|
@ -1,4 +1,7 @@
|
||||||
import std/[os, strutils, strformat]
|
# import system/nimscript
|
||||||
|
import std/[
|
||||||
|
os, strutils, strformat
|
||||||
|
]
|
||||||
|
|
||||||
switch("hint","[Conf]:off")
|
switch("hint","[Conf]:off")
|
||||||
|
|
||||||
|
@ -26,14 +29,9 @@ proc getGitRootMaybe(): string =
|
||||||
else:
|
else:
|
||||||
result = projectDir()
|
result = projectDir()
|
||||||
|
|
||||||
let
|
const
|
||||||
root = getGitRootMaybe()
|
|
||||||
(_, pkgName) = root.splitPath()
|
|
||||||
srcFile = root / "src" / (pkgName & ".nim")
|
|
||||||
# formatter = "nimpretty"
|
|
||||||
formatter = "nph"
|
formatter = "nph"
|
||||||
|
|
||||||
|
|
||||||
proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") =
|
proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") =
|
||||||
let srcFiles = gorgeExCd(fmt"nimgrep --filenames -r '{pattern}' --noColor").output.split("\n")[0..^2]
|
let srcFiles = gorgeExCd(fmt"nimgrep --filenames -r '{pattern}' --noColor").output.split("\n")[0..^2]
|
||||||
for file in srcFiles:
|
for file in srcFiles:
|
||||||
|
@ -58,7 +56,7 @@ task i, "install package":
|
||||||
setCommand("nop")
|
setCommand("nop")
|
||||||
|
|
||||||
|
|
||||||
task lexidInc, "bump lexigraphic id":
|
task lexidInc, "bump lexicographic id":
|
||||||
let (vsn, code) = gorgeExCd("git describe --tags --always --dirty=-dev")
|
let (vsn, code) = gorgeExCd("git describe --tags --always --dirty=-dev")
|
||||||
if code != 0:
|
if code != 0:
|
||||||
echo "is this a git repo?"
|
echo "is this a git repo?"
|
||||||
|
@ -90,3 +88,6 @@ task lexidInc, "bump lexigraphic id":
|
||||||
task _,"_______________":
|
task _,"_______________":
|
||||||
discard
|
discard
|
||||||
|
|
||||||
|
|
||||||
|
task h, "":
|
||||||
|
exec "nim help"
|
||||||
|
|
Loading…
Reference in a new issue