Module nake

All the binary does is forward cli arguments to nimrod c -r nakefile.nim $ARGS maybe there should be some option to not rebuild the nakefile everytime? idk

Types

PTask* = ref object 
  desc*: string
  action*: TTaskFunction
TTaskFunction* = proc ()

Procs

proc runTask*(name: string) {.inline.}
proc shell*(cmd: varargs[string, `$`]): bool {.discardable.}
proc cd*(dir: string) {.inline.}
proc shell*(cmd: varargs[string, `$`]): bool
proc direShell*(cmd: varargs[string, `$`]): bool {.discardable.}
like shell() but quit if the process does not return 0
proc cd*(dir: string)

Templates

template task*(name: string; description: string; body: stmt): stmt {.immediate.}
template withDir*(dir: string; body: stmt): stmt
temporary cd
withDir "foo":
# inside foo

#back to last dir