add more helper tasks
This commit is contained in:
parent
b48499fbbd
commit
92511f2464
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue