From bbb0f2ceafb229038f95959e207210fdcc9d12a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Sat, 21 Oct 2023 14:37:11 +0200 Subject: [PATCH] docs: add documentation --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26851a4..f018dc7 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,9 @@ This template supports all major OS (macOS, Linux, Windows). ## Usage +> **Note** +> If you are solving a previous year's aoc and want to use the `aoc-cli` integration, change the `AOC_YEAR` variable in `.cargo/config.toml` to reflect that. + ### Scaffold a day ```sh @@ -96,6 +99,13 @@ cargo solve Displayed _timings_ show the raw execution time of your solution without overhead (e.g. file reads). +#### Submitting solutions + +> **Note** +> This requires [installing the aoc-cli crate](#download-puzzle-inputs-via-aoc-cli). + +In order to submit part of a solution for checking, append the `--submit ` option to the `solve` command. + ### Run all solutions ```sh @@ -140,6 +150,7 @@ cargo fmt ```sh cargo clippy ``` +## Optional template features ### Read puzzle description in terminal @@ -158,8 +169,6 @@ cargo read To read inputs for previous years, append the `--year/-y` flag. _(example: `cargo read 1 --year 2020`)_ -## Optional template features - ### Download puzzle inputs via aoc-cli 1. Install [`aoc-cli`](https://github.com/scarvalhojr/aoc-cli/) via cargo: `cargo install aoc-cli --version 0.7.0`