A simple tool to fetch your Advent of Code input and submit your solutions.
Via Cargo:
console
cargo install --locked arrive
From source:
console
git clone https://github.com/tranzystorek-io/arrive.git
cargo install --path arrive
Set a new session token (see Token section):
console
arv token set <token>
Print currently stored session token:
console
arv token show
Select currently processed advent day:
console
arv select -y <year> -d <day>
Show current selection and day completion status:
console
arv status
Print input for current selection:
console
arv input
Submit advent solution for current selection.
If <solution> is omitted, STDIN is read instead.
console
arv submit [<solution>]
For the web commands (arv input, arv submit) to work,
a valid AOC session token needs to be supplied to arv token set.
To obtain such a token, do the following:
sessionarv token set <token>These tokens have long expiration dates, so you can typically set-and-forget once.
Deeply inspired by aocf!