Skip to content

Commit 861adb5

Browse files
committed
Update docs
1 parent 7f0f7ac commit 861adb5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
## Unreleased
77
### Added
88
- Extend cli with possibility to specify directories for: templates, challenges solutions, and data
9+
- Extend cli and `BaseChallenge` interface with possibility to specify custom input file
910

1011
### Fixed
1112
- Fixed typing in cli module

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ Day 0 - Part 1: 1
6666
Day 0 - Part 2: 10
6767
```
6868

69+
Alternatively you can also specify the path to the input file instead of using the default one.
70+
71+
```sh
72+
$ aoc run 0 -f custom_input.txt
73+
Using data from custom_input.txt  hello, nekeal ⭐
74+
Day 0 - Part 1: 1
75+
Using data from custom_input.txt
76+
Day 0 - Part 2: 33
77+
```
6978
### Verifying solution
7079

7180
You can verify your solution by running [pytest](https://github.com/pytest-dev/pytest) tests.

0 commit comments

Comments
 (0)