cmdlinehelper

Source   Edit  

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

Types

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

Procs

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