important_packages: change the order of arguments in the template (#13577)
Leads to a cleaner and less confusing code - an empty command doesn't mean 'nimble test' anymore.
This commit is contained in:
parent
eb42f38088
commit
e8c057fb27
2 changed files with 52 additions and 55 deletions
|
|
@ -10,7 +10,7 @@
|
|||
## Include for the tester that contains test suites that test special features
|
||||
## of the compiler.
|
||||
|
||||
# included from tester.nim
|
||||
# included from testament.nim
|
||||
|
||||
import important_packages
|
||||
|
||||
|
|
@ -456,10 +456,8 @@ let
|
|||
packageIndex = nimbleDir / "packages_official.json"
|
||||
|
||||
iterator listPackages(): tuple[name, url, cmd: string, hasDeps: bool] =
|
||||
let defaultCmd = "nimble test"
|
||||
let packageList = parseFile(packageIndex)
|
||||
for n, cmd, hasDeps, url in important_packages.packages.items:
|
||||
let cmd = if cmd.len == 0: defaultCmd else: cmd
|
||||
if url.len != 0:
|
||||
yield (n, url, cmd, hasDeps)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue