icoa-cli 2.7.1 → 2.7.2
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 +5 -3
- package/package.json +1 -1
package/dist/commands/exam.js
CHANGED
|
@@ -153,8 +153,9 @@ export function registerExamCommand(program) {
|
|
|
153
153
|
if (!client)
|
|
154
154
|
return;
|
|
155
155
|
const proceed = await confirm({
|
|
156
|
-
message: 'Start the exam? The timer will begin immediately.',
|
|
156
|
+
message: chalk.white('Start the exam? The timer will begin immediately.'),
|
|
157
157
|
default: true,
|
|
158
|
+
theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
|
|
158
159
|
});
|
|
159
160
|
if (!proceed)
|
|
160
161
|
return;
|
|
@@ -369,7 +370,7 @@ export function registerExamCommand(program) {
|
|
|
369
370
|
msg += chalk.yellow(` ${unanswered} unanswered.`);
|
|
370
371
|
}
|
|
371
372
|
msg += ' This cannot be undone.';
|
|
372
|
-
const proceed = await confirm({ message: msg, default: false });
|
|
373
|
+
const proceed = await confirm({ message: chalk.white(msg), default: false, theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } } });
|
|
373
374
|
if (!proceed)
|
|
374
375
|
return;
|
|
375
376
|
console.log();
|
|
@@ -511,8 +512,9 @@ export function registerExamCommand(program) {
|
|
|
511
512
|
console.log(chalk.gray(' └─────────────────────────────────────────────────┘'));
|
|
512
513
|
console.log();
|
|
513
514
|
const proceed = await confirm({
|
|
514
|
-
message: 'Start demo exam now?',
|
|
515
|
+
message: chalk.white('Start demo exam now?'),
|
|
515
516
|
default: true,
|
|
517
|
+
theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
|
|
516
518
|
});
|
|
517
519
|
if (!proceed)
|
|
518
520
|
return;
|