advent-of-code-2024/config.nims
2024-12-02 17:32:54 -06:00

12 lines
355 B
Nim

import std/[algorithm, os, strformat, sequtils]
--noNimblePath
--path:"./src"
task solve, "run all solutions":
for dir in walkDirRec("solutions", yieldFilter = {pcDir}).toSeq().sortedByIt(it):
echo "--",dir,"--"
var cmd = "r --hint:all:off "
when defined(noSolve): cmd &= "-d:noSolve"
cmd &= fmt" {dir}/solution.nim "
selfExec cmd