icoa-cli 2.19.25 → 2.19.27
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 +6 -0
- package/package.json +1 -1
package/dist/commands/exam.js
CHANGED
|
@@ -243,6 +243,8 @@ function printQuestion(q, answer) {
|
|
|
243
243
|
console.log(chalk.yellow(' A/B/C/D') + chalk.gray(` ${t('answerThis')}`));
|
|
244
244
|
console.log(chalk.yellow(' help') + ' ' + helpLabel);
|
|
245
245
|
console.log(chalk.yellow(' next') + chalk.gray(' / ') + chalk.yellow('prev') + chalk.gray(` ${t('htpNav')}`));
|
|
246
|
+
console.log(chalk.yellow(` exam q 1..${total}`) + chalk.gray(' jump to a specific question'));
|
|
247
|
+
console.log(chalk.yellow(' exam review') + chalk.gray(' check progress'));
|
|
246
248
|
console.log(chalk.yellow(' back') + chalk.gray(` ${t('htpBack')}`));
|
|
247
249
|
console.log(chalk.yellow(' lang') + chalk.gray(` ${t('htpLang')}`));
|
|
248
250
|
console.log(chalk.gray(' ─────────────────────────────────────────'));
|
|
@@ -835,6 +837,8 @@ export function registerExamCommand(program) {
|
|
|
835
837
|
console.log(chalk.gray(' Sydney, Australia · Jun 27 - Jul 2, 2026'));
|
|
836
838
|
console.log();
|
|
837
839
|
console.log(chalk.cyan(' ═══════════════════════════════════════'));
|
|
840
|
+
// Paced reveal: give the user time to absorb each section.
|
|
841
|
+
await sleep(3000);
|
|
838
842
|
// Per-category breakdown with ASCII progress bars
|
|
839
843
|
const catEntries = Object.entries(categoryStats);
|
|
840
844
|
if (catEntries.length > 0) {
|
|
@@ -868,6 +872,7 @@ export function registerExamCommand(program) {
|
|
|
868
872
|
else {
|
|
869
873
|
clearRetryQueue();
|
|
870
874
|
}
|
|
875
|
+
await sleep(3000);
|
|
871
876
|
// Show wrong answers with explanations
|
|
872
877
|
if (wrongQuestions.length > 0) {
|
|
873
878
|
console.log();
|
|
@@ -904,6 +909,7 @@ export function registerExamCommand(program) {
|
|
|
904
909
|
console.log();
|
|
905
910
|
console.log(chalk.white(' 💪 Want to nail the ones you missed? Type: ') + chalk.bold.cyan('retry'));
|
|
906
911
|
}
|
|
912
|
+
await sleep(3000);
|
|
907
913
|
console.log();
|
|
908
914
|
// ─── What is CTF + Dual-track introduction ───
|
|
909
915
|
console.log(chalk.white(` ${t('theoryDone')}`));
|