Skip to content

Commit a4cbe6d

Browse files
committed
update readme
1 parent 94c5eea commit a4cbe6d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,26 +170,22 @@ npm run auth
170170
```
171171

172172
### `import <day> <level> <answer> [--no-confirm]`
173-
Stores the correct answer to a puzzle which was solved outside of advent-of-code-runner. This allows you to start using advent-of-code-runner even if you've already started the years calendar. Before this command you couldn't let advent-of-code-runner know that you had solved a puzzle already.
174-
175-
Once you've imported a puzzle answer you will probably want to update the corresponding solution file with the code you wrote elsewhere, this way you can track runtime statistics for the puzzle.
173+
Stores the correct answer to a puzzle which was solved outside of advent-of-code-runner. This allows you to start using advent-of-code-runner even if you've already started the years calendar. Before this command you couldn't let advent-of-code-runner know that you had solved a puzzle already. Once you've imported an answer you will probably want to update the corresponding solution file to add your existing code.
176174

177175
**Note**: All imported puzzles are set to a runtime of 999 seconds. After importing an answer you will want to run the `solve` command for the puzzle you just imported, running the `solve` command will update the runtime to a real value.
178176

179-
Running without the `--no-confirm` flag is the default behavior. If you are importing the answer to a puzzle which already has an entry in your `aocr-data.json` file, then you will be asked to confirm overwriting this data. It shouldn't be an issue to overwrite it in the off chance that it does exist.
177+
Running without the `--no-confirm` flag is the default behavior. You will be asked to confirm when importing any puzzles which already exist in your `aocr-data.json` file.
180178

181179
```
182180
npm run import <day> <level> <answer>
183181
```
184182

185-
Running with the `--no-confirm` flag will skip any confirmation for overwriting existing data. This option comes in handy when bulk importing answers.
183+
Running with the `--no-confirm` flag will skip any confirmation for overwriting existing data.
186184

187185
```
188186
npm run import --no-confirm <day> <level> <answer>
189187
```
190188

191-
192-
193189
#### Handling different answer types
194190

195191
Answers are stored as strings, so you usually don't need to wrap your answer with quotes. However there are certain answers which will need special care:

0 commit comments

Comments
 (0)