icoa-cli 2.16.6 → 2.16.7
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 +4 -2
- package/package.json +1 -1
package/dist/commands/exam.js
CHANGED
|
@@ -133,10 +133,12 @@ function printQuestion(q, answer) {
|
|
|
133
133
|
}
|
|
134
134
|
// Full menu on every question
|
|
135
135
|
const remaining = help.max - help.used;
|
|
136
|
-
const helpLabel = remaining > 0
|
|
136
|
+
const helpLabel = remaining > 0
|
|
137
|
+
? chalk.gray('remove a wrong option ') + chalk.yellow(`(${remaining}/${help.max})`)
|
|
138
|
+
: (help.max < 8 ? chalk.gray('used up — type ') + chalk.yellow('more help') + chalk.gray(' for +3') : chalk.gray(`used up (${help.used}/${help.max})`));
|
|
137
139
|
console.log(chalk.gray(' ─────────────────────────────────────────'));
|
|
138
140
|
console.log(chalk.yellow(' A/B/C/D') + chalk.gray(' answer this question'));
|
|
139
|
-
console.log(chalk.yellow(' help') +
|
|
141
|
+
console.log(chalk.yellow(' help') + ' ' + helpLabel);
|
|
140
142
|
console.log(chalk.yellow(' next') + chalk.gray(' / ') + chalk.yellow('prev') + chalk.gray(' move between questions'));
|
|
141
143
|
console.log(chalk.yellow(' back') + chalk.gray(' pause and return to menu'));
|
|
142
144
|
console.log(chalk.yellow(' lang') + chalk.gray(' view all languages / ') + chalk.yellow('lang es') + chalk.gray(' to switch'));
|