Compare commits

...

2 commits

Author SHA1 Message Date
662297a51e
add jj alias 2024-11-14 14:42:12 -06:00
92511f2464
add more helper tasks 2024-11-14 14:42:12 -06:00
2 changed files with 16 additions and 2 deletions

View file

@ -1,4 +1,6 @@
# import system/nimscript when defined(nimsuggest):
import system/nimscript
import std/[ import std/[
os, strutils, strformat os, strutils, strformat
] ]
@ -99,7 +101,16 @@ task b, fmt"build binary, default: {name}":
else: else:
setCommand "c","" setCommand "c",""
task updateLock, "workaround for nimble lock probs":
let nimbleFile = projectDir().lastPathPart & ".nimble"
if not fileExists nimbleFile:
quit "expected to find: " & nimbleFile
rmDir "nimbledeps"
rmFile "nimble.lock"
exec "nimble lock -l"
exec "nimble setup -l"
# line delemiter for `nim help`
task _,"_______________": task _,"_______________":
discard discard

View file

@ -8,7 +8,7 @@ backend = "gpg"
signingkey = "7AD9DB430EE2B3C1D86BF3243CD66E04B8072F3E" signingkey = "7AD9DB430EE2B3C1D86BF3243CD66E04B8072F3E"
[git] [git]
private-commits = "description(glob:'wip:*') | description(glob:'private:*')" private-commits = "description(glob:'wip*') | description(glob:'private:*')"
[ui] [ui]
default-command = "log" default-command = "log"
@ -17,3 +17,6 @@ diff-editor = ":builtin"
[ui.diff] [ui.diff]
format = "git" format = "git"
[aliases]
wip = ["ci", "-m", "wip"]