aoc2022/scripts/submit-answer

11 lines
266 B
Plaintext
Raw Permalink Normal View History

2022-12-01 05:11:06 +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))