advent-of-code-2024/config.nims

16 lines
409 B
Text
Raw Normal View History

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
2024-12-03 21:23:50 -06:00
task new, "generate new day":
exec "nim r src/aoc"