https://github.com/razerm/advent-of-code-2021
https://github.com/razerm/advent-of-code-2021
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/razerm/advent-of-code-2021
- Owner: RazerM
- License: mit
- Created: 2021-12-12T19:35:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-21T16:07:59.000Z (over 3 years ago)
- Last Synced: 2025-01-29T15:35:12.195Z (4 months ago)
- Language: Python
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
```bash
git clone https://github.com/RazerM/advent-of-code-2021
cd advent-of-code-2021
python3 -m venv --prompt aoc2021 .venv
source .venv/bin/activate
pip install -e .
```# CLI
Set the `AOC_SESSION` environment variable to the value of your
https://adventofcode.com `session` cookie. It may also be added to an `.env`
file.## Manual Commands
```bash
aoc2021 download 1 input/1.txt
``````bash
aoc2021 run 1 input/1.txt
```## Automatic Commands
These commands assume an `input` directory is being used. Use `prepare` to
download all available input files and create any missing python modules in
`src/aoc2021` from a template.```bash
aoc2021 prepare
```Run the solution for the current day (or provide it as an argument). Uses
the corresponding input file automatically.```bash
aoc2021 autorun [day]
```