Skip to content
Snippets Groups Projects

Resolve "Add zsh, fish, and bash shell completion helper function generation as well as the related command"

Compare and
16 files
+ 694
33
Compare changes
  • Side-by-side
  • Inline
Files
16
import CommanderCommand from '../../../../CommanderCommand';
import CommanderCommand from '../../../../CommanderCommand';
import chalk from 'chalk';
import ora from 'ora';
import ora from 'ora';
import DojoBackendManager from '../../../../../managers/DojoBackendManager';
import DojoBackendManager from '../../../../../managers/DojoBackendManager';
import SessionManager from '../../../../../managers/SessionManager';
import SessionManager from '../../../../../managers/SessionManager';
import Assignment from '../../../../../sharedByClients/models/Assignment';
import Assignment from '../../../../../sharedByClients/models/Assignment';
 
import TextStyle from '../../../../../types/TextStyle';
abstract class AssignmentCorrectionLinkUpdateCommand extends CommanderCommand {
abstract class AssignmentCorrectionLinkUpdateCommand extends CommanderCommand {
@@ -22,7 +22,7 @@ abstract class AssignmentCorrectionLinkUpdateCommand extends CommanderCommand {
@@ -22,7 +22,7 @@ abstract class AssignmentCorrectionLinkUpdateCommand extends CommanderCommand {
// Check access
// Check access
{
{
console.log(chalk.cyan('Please wait while we check access...'));
console.log(TextStyle.BLOCK('Please wait while we check access...'));
const assignmentGetSpinner: ora.Ora = ora('Checking if assignment exists').start();
const assignmentGetSpinner: ora.Ora = ora('Checking if assignment exists').start();
assignment = await DojoBackendManager.getAssignment(options.assignment);
assignment = await DojoBackendManager.getAssignment(options.assignment);
@@ -51,7 +51,7 @@ abstract class AssignmentCorrectionLinkUpdateCommand extends CommanderCommand {
@@ -51,7 +51,7 @@ abstract class AssignmentCorrectionLinkUpdateCommand extends CommanderCommand {
// Link the exercise
// Link the exercise
{
{
console.log(chalk.cyan('Please wait while we link the exercise...'));
console.log(TextStyle.BLOCK('Please wait while we link the exercise...'));
await DojoBackendManager.linkUpdateCorrection(exerciseIdOrUrl, assignment, this.isUpdate);
await DojoBackendManager.linkUpdateCorrection(exerciseIdOrUrl, assignment, this.isUpdate);
}
}
Loading