aoc2020/scripts/get-input

11 lines
280 B
Plaintext
Raw Normal View History

2020-12-01 21:33:57 +00:00
#!/usr/bin/env racket
#lang racket
2020-12-01 23:14:54 +00:00
(require "aoc-lib.rkt")
2020-12-01 21:33:57 +00:00
(command-line
#:program "get-input"
#:args (day)
2020-12-01 23:14:54 +00:00
(define in (aoc-fetch-input (getenv "AOC_YEAR") day (getenv "AOC_SESSION")))
(call-with-output-file (build-path "inputs" day) (lambda (out) (copy-port in out))))