My julia solutions for Advent of Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
371 B

  1. if length(ARGS) == 1
  2. for (root, dirs, files) in walkdir(joinpath(ARGS[1],"src"))
  3. for file in files
  4. f,l = splitext(file)
  5. if l == ".jl" && startswith(f,"day_")
  6. @info string("Running ", file)
  7. include(joinpath(root,file))
  8. end
  9. end
  10. end
  11. elseif length(ARGS) == 2
  12. include(joinpath(ARGS[1],"src",string("day_",ARGS[2],".jl")))
  13. end