Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Multi-year support #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
FXCourel wants to merge 5 commits into fspoettel:main
base: main
Choose a base branch
Loading
from FXCourel:main
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update README.md
  • Loading branch information
FXCourel committed Dec 14, 2024
commit ea685ea6d1328ee9e0e1a5e3a10a3c919f8b51a9
24 changes: 23 additions & 1 deletion README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="./.assets/christmas_ferris.png" width="164">

# 🎄 Advent of Code {year}
# 🎄 Advent of Code

Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.rust-lang.org/).

Expand Down Expand Up @@ -201,6 +201,28 @@ cargo today
# ...the input...
```

### ➡️ Change year

You can use the `switch-year` command to navigate through years.

The files of the year defined in the environment variable `AOC_YEAR` in `.cargo/config.toml` are as usual in `src/` and `data/` folders, while the others are stored in `years/{AOC_YEAR}/`. Benchmarks on the readme are automatically updated.

```sh
# example: `cargo switch-year 2015` with no files already written for 2015
cargo switch-year 2015

# output:
# No existing files for year 2015, generating blank folders.
# ---
# 🎄 Successfully switched to year 2015.
```

> [!TIP]
> Remember to switch to the last event year before doing any commits on your personal repo, or else you will have many files changes as there were moved during year switches.

> Please note that [stars tracking](#automatically-track-️-progress-in-the-readme) will still track the year you specified in the GitHub action and will not be changed.


### ➡️ Format code

```sh
Expand Down

AltStyle によって変換されたページ (->オリジナル) /