From 4339ebbafb93fbbbf2dd0a68a0db0a9420a1a2eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Thu, 2 Nov 2023 19:22:08 +0100 Subject: [PATCH] Exercise/Assignment => Change sentences --- .../assignment/subcommands/AssignmentCreateCommand.ts | 5 +++-- .../exercise/subcommands/ExerciseCreateCommand.ts | 11 +++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts b/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts index 0b28a1c..7a5bea4 100644 --- a/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts +++ b/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts @@ -61,14 +61,15 @@ class AssignmentCreateCommand extends CommanderCommand { // Create the assignment { - console.log(chalk.cyan('Please wait while we are creating the assignment...')); + console.log(chalk.cyan('Please wait while we are creating the assignment (approximately 10 seconds)...')); try { const assignment: Assignment = await DojoBackendManager.createAssignment(options.name, members, templateIdOrNamespace); const oraInfo = (message: string) => { ora({ - text: message, indent: 4 + text : message, + indent: 4 }).start().info(); }; diff --git a/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts b/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts index bb51c2e..5b547df 100644 --- a/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts +++ b/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts @@ -40,7 +40,8 @@ class ExerciseCreateCommand extends CommanderCommand { ora('Checking assignment:').start().info(); const assignmentGetSpinner: ora.Ora = ora({ - text: 'Checking if assignment exists', indent: 4 + text : 'Checking if assignment exists', + indent: 4 }).start(); assignment = await DojoBackendManager.getAssignment(options.assignment); if ( !assignment ) { @@ -50,7 +51,8 @@ class ExerciseCreateCommand extends CommanderCommand { assignmentGetSpinner.succeed(`Assignment "${ options.assignment }" exists`); const assignmentPublishedSpinner: ora.Ora = ora({ - text: 'Checking if assignment is published', indent: 4 + text : 'Checking if assignment is published', + indent: 4 }).start(); if ( !assignment.published ) { assignmentPublishedSpinner.fail(`Assignment "${ assignment.name }" isn't published`); @@ -61,14 +63,15 @@ class ExerciseCreateCommand extends CommanderCommand { //Create the exercise { - console.log(chalk.cyan('Please wait while we are creating the exercise...')); + console.log(chalk.cyan('Please wait while we are creating the exercise (approximately 10 seconds)...')); try { const exercise: Exercise = await DojoBackendManager.createExercise((assignment as Assignment).name, members); const oraInfo = (message: string) => { ora({ - text: message, indent: 4 + text : message, + indent: 4 }).start().info(); }; -- GitLab