icoa-cli 2.15.7 → 2.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/exam.js +7 -6
- package/package.json +1 -1
package/dist/commands/exam.js
CHANGED
|
@@ -819,13 +819,14 @@ export function registerExamCommand(program) {
|
|
|
819
819
|
const existing = getExamState();
|
|
820
820
|
if (existing) {
|
|
821
821
|
if (existing.session.examId === 'demo-free') {
|
|
822
|
-
|
|
823
|
-
|
|
822
|
+
// Demo: always restart fresh
|
|
823
|
+
clearExamState();
|
|
824
|
+
}
|
|
825
|
+
else {
|
|
826
|
+
printWarning(`Exam "${existing.session.examName}" is in progress.`);
|
|
827
|
+
printInfo('Submit it first: exam submit');
|
|
824
828
|
return;
|
|
825
829
|
}
|
|
826
|
-
printWarning(`Exam "${existing.session.examName}" is in progress.`);
|
|
827
|
-
printInfo('Submit it first: exam submit');
|
|
828
|
-
return;
|
|
829
830
|
}
|
|
830
831
|
console.log();
|
|
831
832
|
printHeader('ICOA Demo Exam — Free Practice');
|
|
@@ -841,7 +842,7 @@ export function registerExamCommand(program) {
|
|
|
841
842
|
console.log(chalk.gray(' │') + chalk.white(' You can change answers anytime before submitting ') + chalk.gray('│'));
|
|
842
843
|
console.log(chalk.gray(' │') + chalk.white(' Running low on help? Type ') + chalk.yellow('more help') + chalk.white(' for +3 ') + chalk.gray('│'));
|
|
843
844
|
console.log(chalk.gray(' │') + chalk.white(' Type ') + chalk.yellow('lang') + chalk.white(' to switch language (15 supported) ') + chalk.gray('│'));
|
|
844
|
-
console.log(chalk.gray(' │') + chalk.gray(' e.g. lang es (Español) · lang
|
|
845
|
+
console.log(chalk.gray(' │') + chalk.gray(' e.g. lang es (Español) · lang ko · lang fr ') + chalk.gray('│'));
|
|
845
846
|
console.log(chalk.gray(' └─────────────────────────────────────────────────┘'));
|
|
846
847
|
console.log();
|
|
847
848
|
const proceed = await confirm({
|