You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
176
174
177
175
**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.
178
176
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.
180
178
181
179
```
182
180
npm run import <day> <level> <answer>
183
181
```
184
182
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.
186
184
187
185
```
188
186
npm run import --no-confirm <day> <level> <answer>
189
187
```
190
188
191
-
192
-
193
189
#### Handling different answer types
194
190
195
191
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