Skip to content

Commit 2b21bc6

Browse files
committed
add action to submit and solve command
1 parent 2d4f2d5 commit 2b21bc6

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/actions/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { assertAnswerCorrect } from './assertAnswerCorrect.js';
22
import { assertAnswerNotPreviouslySubmitted } from './assertAnswerNotPreviouslySubmitted.js';
33
import { assertConfigValue } from './assertConfigValue.js';
44
import { assertInitialized } from './assertInitialized.js';
5+
import { assertPuzzleHasLevel } from './assertPuzzleHasLevel.js';
56
import { assertPuzzleLevelMet } from './assertPuzzleLevelMet.js';
67
import { assertPuzzleUnlocked } from './assertPuzzleUnlocked.js';
78
import { assertPuzzleUnsolved } from './assertPuzzleUnsolved.js';
@@ -37,6 +38,7 @@ export {
3738
assertInitialized,
3839
assertPuzzleUnlocked,
3940
assertPuzzleUnsolved,
41+
assertPuzzleHasLevel,
4042
assertPuzzleLevelMet,
4143
assertUserConfirmation,
4244
executeUserSolution,

src/cli/solve.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { dayArgument, levelArgument } from './arguments.js';
77
* The common actions between the 'solve' and 'autosolve' commands
88
*/
99
const solveActions = [
10+
actions.assertPuzzleHasLevel,
1011
actions.outputPuzzleLink,
1112
actions.assertPuzzleUnlocked,
1213
actions.assertPuzzleLevelMet,

src/cli/submit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { dayArgument, levelArgument } from './arguments.js';
77
* The common actions between the 'submit' and 'autosubmit' commands
88
*/
99
const submitActions = [
10+
actions.assertPuzzleHasLevel,
1011
actions.outputPuzzleLink,
1112
actions.assertPuzzleUnlocked,
1213
actions.assertPuzzleLevelMet,

0 commit comments

Comments
 (0)