aoc2020/scripts/submit-answer

11 lines
266 B
Plaintext
Raw Normal View History

2020-12-01 23:14:54 +00:00
#!/usr/bin/env racket
#lang racket
(require "aoc-lib.rkt")
(command-line
#:program "submit-answer"
#:args (day part answer)
(define resp (aoc-submit-answer (getenv "AOC_YEAR") day (getenv "AOC_SESSION") part answer))
(printf "server returned: ~a\n" resp))