mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
rename loadConfigsAndRunMainCommand => loadConfigsAndProcessCmdLine, reflect reality (#16057)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user