Fixes #706. No more unused import warnings.
This commit is contained in:
parent
5ea2ac34fe
commit
c85cdfd814
1 changed files with 9 additions and 3 deletions
|
|
@ -39,9 +39,15 @@ proc execNimscript(nimsFile, projectDir, actionName: string, options: Options):
|
||||||
if not isScriptResultCopied and options.shouldRemoveTmp(nimsFileCopied):
|
if not isScriptResultCopied and options.shouldRemoveTmp(nimsFileCopied):
|
||||||
nimsFileCopied.removeFile()
|
nimsFileCopied.removeFile()
|
||||||
|
|
||||||
var
|
var cmd = (
|
||||||
cmd = ("nim e --hints:off --verbosity:0 -p:" & (getTempDir() / "nimblecache").quoteShell &
|
"nim e $# -p:$# $# $# $#" % [
|
||||||
" " & nimsFileCopied.quoteShell & " " & outFile.quoteShell & " " & actionName).strip()
|
"--hints:off --warning[UnusedImport]:off --verbosity:0",
|
||||||
|
(getTempDir() / "nimblecache").quoteShell,
|
||||||
|
nimsFileCopied.quoteShell,
|
||||||
|
outFile.quoteShell,
|
||||||
|
actionName
|
||||||
|
]
|
||||||
|
).strip()
|
||||||
|
|
||||||
if options.action.typ == actionCustom and actionName != "printPkgInfo":
|
if options.action.typ == actionCustom and actionName != "printPkgInfo":
|
||||||
for i in options.action.arguments:
|
for i in options.action.arguments:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue