cmdlinehelper

Helpers for binaries that use compiler passes, e.g.: nim, nimsuggest, nimfix

Types

NimProg = ref object
  suggestMode*: bool
  supportsStdinFile*: bool
  processCmdLine*: proc (pass: TCmdLinePass; cmd: string; config: ConfigRef)
  Source Edit

Procs

proc prependCurDir(f: AbsoluteFile): AbsoluteFile {...}{.raises: [], tags: [].}
  Source Edit
proc addCmdPrefix(result: var string; kind: CmdLineKind) {...}{.raises: [], tags: [].}
  Source Edit
proc initDefinesProg(self: NimProg; conf: ConfigRef; name: string) {...}{.raises: [],
    tags: [].}
  Source Edit
proc processCmdLineAndProjectPath(self: NimProg; conf: ConfigRef) {...}{.
    raises: [Exception, OSError],
    tags: [RootEffect, ReadEnvEffect, ReadIOEffect, ReadDirEffect].}
  Source Edit
proc loadConfigsAndRunMainCommand(self: NimProg; cache: IdentCache;
                                  conf: ConfigRef; graph: ModuleGraph): bool {...}{.raises: [
    OSError, IOError, Exception, KeyError, ValueError, ERecoverableError,
    EOFError], tags: [ReadIOEffect, ReadDirEffect, ReadEnvEffect, RootEffect,
                      WriteIOEffect, WriteEnvEffect, WriteDirEffect,
                      ExecIOEffect, TimeEffect].}
  Source Edit