icoa-cli 2.16.2 → 2.16.4

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.
@@ -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();
@@ -868,31 +867,20 @@ export function registerExamCommand(program) {
868
867
  console.log();
869
868
  printHowToPlay();
870
869
  console.log();
871
- // Ask language preference first
870
+ // Show language info
872
871
  const { getConfig: gc } = await import('../lib/config.js');
873
872
  const currentLang = gc().language || 'en';
874
- const langConfirm = await confirm({
875
- message: chalk.white(`Questions will be in English. OK?`),
876
- default: true,
877
- theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
878
- });
879
- if (!langConfirm) {
880
- console.log();
881
- console.log(chalk.white(' Switch language first, then type ') + chalk.bold.cyan('demo') + chalk.white(' again:'));
882
- console.log();
883
- console.log(chalk.yellow(' lang es') + chalk.gray(' Español'));
884
- console.log(chalk.yellow(' lang zh') + chalk.gray(' 中文'));
885
- console.log(chalk.yellow(' lang ko') + chalk.gray(' 한국어'));
886
- console.log(chalk.yellow(' lang ja') + chalk.gray(' 日本語'));
887
- console.log(chalk.yellow(' lang fr') + chalk.gray(' Français'));
888
- console.log(chalk.yellow(' lang ar') + chalk.gray(' العربية'));
889
- console.log(chalk.yellow(' lang pt') + chalk.gray(' Português'));
890
- console.log(chalk.yellow(' lang') + chalk.gray(' View all 15 languages'));
891
- console.log();
892
- return;
873
+ if (currentLang === 'en') {
874
+ console.log(chalk.gray(' Questions in English. To switch language:'));
875
+ console.log(chalk.gray(' lang es (Español) · lang zh (中文) · lang ko (한국어) · lang ja (日本語)'));
876
+ console.log(chalk.gray(' lang fr · lang ar · lang pt · lang to see all 15'));
893
877
  }
878
+ else {
879
+ console.log(chalk.green(` Language: ${currentLang}`));
880
+ }
881
+ console.log();
894
882
  const proceed = await confirm({
895
- message: chalk.white('Start demo exam now?'),
883
+ message: chalk.white('Start demo exam?'),
896
884
  default: true,
897
885
  theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
898
886
  });
@@ -914,7 +902,6 @@ export function registerExamCommand(program) {
914
902
  printKeyValue('Duration', 'No time limit');
915
903
  // Show first question
916
904
  printQuestion(DEMO_QUESTIONS[0]);
917
- console.log(chalk.gray(' Commands: exam q <n> | exam answer <n> <A-D> | exam review | exam submit'));
918
905
  });
919
906
  // Default action: show status or help
920
907
  exam.action(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.16.2",
3
+ "version": "2.16.4",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {