rename loadConfigsAndRunMainCommand => loadConfigsAndProcessCmdLine, reflect reality (#16057)

This commit is contained in:
Timothee Cour
2020-11-20 01:51:14 -08:00
committed by GitHub
parent 6cf5ca1dc2
commit 7815ed69d4
5 changed files with 6 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ proc processCmdLineAndProjectPath*(self: NimProg, conf: ConfigRef) =
else:
conf.projectPath = AbsoluteDir canonicalizePath(conf, AbsoluteFile getCurrentDir())
proc loadConfigsAndRunMainCommand*(self: NimProg, cache: IdentCache; conf: ConfigRef;
proc loadConfigsAndProcessCmdLine*(self: NimProg, cache: IdentCache; conf: ConfigRef;
graph: ModuleGraph): bool =
if self.suggestMode:
conf.command = "nimsuggest"

View File

@@ -79,7 +79,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
self.processCmdLineAndProjectPath(conf)
var graph = newModuleGraph(cache, conf)
if not self.loadConfigsAndRunMainCommand(cache, conf, graph):
if not self.loadConfigsAndProcessCmdLine(cache, conf, graph):
return
mainCommand(graph)
if conf.hasHint(hintGCStats): echo(GC_getStatistics())

View File

@@ -1269,7 +1269,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
self.processCmdLineAndProjectPath(conf)
var graph = newModuleGraph(cache, conf)
if not self.loadConfigsAndRunMainCommand(cache, conf, graph): return
if not self.loadConfigsAndProcessCmdLine(cache, conf, graph): return
mainCommand(graph)
if conf.hasHint(hintGCStats): echo(GC_getStatistics())

View File

@@ -644,7 +644,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
myLog("START " & conf.projectFull.string)
var graph = newModuleGraph(cache, conf)
if self.loadConfigsAndRunMainCommand(cache, conf, graph):
if self.loadConfigsAndProcessCmdLine(cache, conf, graph):
mainCommand(graph)
when isMainModule:
@@ -723,7 +723,7 @@ else:
myLog("START " & conf.projectFull.string)
var graph = newModuleGraph(cache, conf)
if self.loadConfigsAndRunMainCommand(cache, conf, graph):
if self.loadConfigsAndProcessCmdLine(cache, conf, graph):
mockCommand(graph)
if gLogging:
for it in conf.searchPaths:

View File

@@ -228,7 +228,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
conf.prefixDir = AbsoluteDir""
var graph = newModuleGraph(cache, conf)
if self.loadConfigsAndRunMainCommand(cache, conf, graph):
if self.loadConfigsAndProcessCmdLine(cache, conf, graph):
mainCommand(graph)
handleCmdLine(newIdentCache(), newConfigRef())