Crates.io | advent-of-code-client |
lib.rs | advent-of-code-client |
version | 0.1.1 |
source | src |
created_at | 2023-12-08 17:05:02.005605 |
updated_at | 2023-12-08 17:22:02.479464 |
description | CLI and crate library to interact with Advent of Code |
homepage | |
repository | https://github.com/OliverFlecke/advent-of-code-rust/tree/main/advent-of-code-client |
max_upload_size | |
id | 1062252 |
size | 79,894 |
Crate to interact with the yearly challenges at Advent of Code. It functions as both a Rust library and an standalone CLI client.
Install with:
cargo install advent-of-code-client
It should now be accessable as aoc
.
To authorize against the Advent of Code site, the CLI expects AOC_TOKEN
to be set in your environment with a valid session token, or manually provided with the --token
flag.
After authenticating on the website, your session token can be found through the following steps (might vary a bit based on your browser):
application
-> Cookies
.export AOC_TOKEN=<your token>
To submit a solution for a given year and day:
aoc 2023 1 -a <your answer>
Use -a
to submit an answer for part A, -b
for part B.