Movatterモバイル変換


[0]ホーム

URL:


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

Commitea685ea

Browse files
committed
Update README.md
1 parent2fec68c commitea685ea

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

‎README.md‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<imgsrc="./.assets/christmas_ferris.png"width="164">
22

3-
#🎄 Advent of Code {year}
3+
#🎄 Advent of Code
44

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

@@ -201,6 +201,28 @@ cargo today
201201
# ...the input...
202202
```
203203

204+
###➡️ Change year
205+
206+
You can use the`switch-year` command to navigate through years.
207+
208+
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.
209+
210+
```sh
211+
# example: `cargo switch-year 2015` with no files already written for 2015
212+
cargo switch-year 2015
213+
214+
# output:
215+
# No existing files for year 2015, generating blank folders.
216+
# ---
217+
# 🎄 Successfully switched to year 2015.
218+
```
219+
220+
>[!TIP]
221+
>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.
222+
223+
>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.
224+
225+
204226
###➡️ Format code
205227

206228
```sh

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp