2024-12-02 17:20:23 -06:00
|
|
|
import std/[algorithm, os, strformat, sequtils]
|
2024-12-01 10:57:37 -06:00
|
|
|
|
|
|
|
--noNimblePath
|
|
|
|
--path:"./src"
|
|
|
|
|
|
|
|
task solve, "run all solutions":
|
|
|
|
for dir in walkDirRec("solutions", yieldFilter = {pcDir}).toSeq().sortedByIt(it):
|
|
|
|
echo "--",dir,"--"
|
2024-12-02 17:20:23 -06:00
|
|
|
var cmd = "r --hint:all:off "
|
|
|
|
when defined(noSolve): cmd &= "-d:noSolve"
|
|
|
|
cmd &= fmt" {dir}/solution.nim "
|
|
|
|
selfExec cmd
|