Index
Modules:
basedefs
,
btrfmt
,
common_imports
,
exec
,
nimsutils
,
time
,
xtask
.
API symbols
`$`:
nimsutils: proc `$`(color: FullColor): string
`/`:
nimsutils: proc `/`(left, right: string): string
`:<`:
btrfmt: template `:<`(s: string; max: int): string
`:>`:
btrfmt: template `:>`(s: string; max: int): string
`@=`:
nimsutils: macro `@=`(key: untyped; value: string)
ARGS:
basedefs: let ARGS
asBool:
basedefs: proc asBool(s: string): bool
CMDENVS:
basedefs: let CMDENVS
Color:
nimsutils: tuple Color
debug:
nimsutils: proc debug(msg: string)
env:
nimsutils: proc env(key: string; default: string = ""): string
epochNanoNow:
time: proc epochNanoNow(): uint64
epochSecNow:
time: proc epochSecNow(): int
error:
nimsutils: proc error(msg: string)
fatal:
nimsutils: proc fatal(msg: string)
FullColor:
nimsutils: tuple FullColor
getStrOfIdent:
basedefs: macro getStrOfIdent(ident: untyped): string
hint:
nimsutils: proc hint(msg: string)
import_macros:
common_imports: template import_macros()
info:
nimsutils: proc info(msg: string)
input:
nimsutils: proc input(msg: string = ""; lvl: LogLevel = logLvlInfo): string
isTopLevel:
basedefs: template isTopLevel(): bool
KWARGS:
basedefs: let KWARGS
log:
nimsutils: proc log(level: LogLevel; msg: string)
LogLevel:
nimsutils: type LogLevel
logLvlDebug:
nimsutils: let logLvlDebug
logLvlError:
nimsutils: let logLvlError
logLvlFatal:
nimsutils: let logLvlFatal
logLvlHint:
nimsutils: let logLvlHint
logLvlInfo:
nimsutils: let logLvlInfo
logLvlNote:
nimsutils: let logLvlNote
logLvlTrace:
nimsutils: let logLvlTrace
logLvlWarn:
nimsutils: let logLvlWarn
lpad:
btrfmt: proc lpad(s: string; max: int): string
nanoEpochToStr:
time: proc nanoEpochToStr(time: uint64; precision = 3): string
note:
nimsutils: proc note(msg: string)
parseParams:
basedefs: proc parseParams(): tuple[kws: Table[string, string], args: seq[string], envs: Table[string, string]]
pkgconfig:
nimsutils: proc pkgconfig(id: string): bool
rpad:
btrfmt: proc rpad(s: string; max: int): string
run:
exec: proc run(cmd: string; quiet = false): tuple[output: string, exitCode: int]
run_quiet:
exec: proc run_quiet(cmd: string): tuple[output: string, exitCode: int]
sh:
exec: macro sh(body: untyped): tuple[output: string, exitCode: int]
suppress:
basedefs: template suppress(exception: typedesc[Exception]; code: untyped)
time:
time: template time(action: string; code: untyped)
time_as:
time: template time_as(timevar: untyped; code: untyped)
trace:
nimsutils: proc trace(msg: string)
warn:
nimsutils: proc warn(msg: string)
xtask:
xtask: template xtask(taskname: untyped; description: string; body: untyped)