icoa-cli 2.16.3 → 2.16.5
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 +2 -10
- package/package.json +1 -1
package/dist/commands/exam.js
CHANGED
|
@@ -296,7 +296,6 @@ export function registerExamCommand(program) {
|
|
|
296
296
|
if (questions.length > 0) {
|
|
297
297
|
printQuestion(questions[0]);
|
|
298
298
|
}
|
|
299
|
-
console.log(chalk.gray(' Commands: exam q <n> | exam answer <n> <A-D> | exam review | exam submit'));
|
|
300
299
|
}
|
|
301
300
|
catch (err) {
|
|
302
301
|
console.log();
|
|
@@ -872,7 +871,7 @@ export function registerExamCommand(program) {
|
|
|
872
871
|
const { getConfig: gc } = await import('../lib/config.js');
|
|
873
872
|
const currentLang = gc().language || 'en';
|
|
874
873
|
if (currentLang === 'en') {
|
|
875
|
-
console.log(chalk.gray(' Questions in English. To switch language:'));
|
|
874
|
+
console.log(chalk.gray(' Questions in English. To switch language first:'));
|
|
876
875
|
console.log(chalk.gray(' lang es (Español) · lang zh (中文) · lang ko (한국어) · lang ja (日本語)'));
|
|
877
876
|
console.log(chalk.gray(' lang fr · lang ar · lang pt · lang to see all 15'));
|
|
878
877
|
}
|
|
@@ -880,13 +879,7 @@ export function registerExamCommand(program) {
|
|
|
880
879
|
console.log(chalk.green(` Language: ${currentLang}`));
|
|
881
880
|
}
|
|
882
881
|
console.log();
|
|
883
|
-
|
|
884
|
-
message: chalk.white('Start demo exam?'),
|
|
885
|
-
default: true,
|
|
886
|
-
theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
|
|
887
|
-
});
|
|
888
|
-
if (!proceed)
|
|
889
|
-
return;
|
|
882
|
+
console.log(chalk.white(' Starting exam...'));
|
|
890
883
|
const session = { ...DEMO_SESSION, startedAt: new Date().toISOString() };
|
|
891
884
|
console.log();
|
|
892
885
|
drawProgress(0, 'Preparing questions...');
|
|
@@ -903,7 +896,6 @@ export function registerExamCommand(program) {
|
|
|
903
896
|
printKeyValue('Duration', 'No time limit');
|
|
904
897
|
// Show first question
|
|
905
898
|
printQuestion(DEMO_QUESTIONS[0]);
|
|
906
|
-
console.log(chalk.gray(' Commands: exam q <n> | exam answer <n> <A-D> | exam review | exam submit'));
|
|
907
899
|
});
|
|
908
900
|
// Default action: show status or help
|
|
909
901
|
exam.action(() => {
|