Skip to content
Snippets Groups Projects

Update file README.md

Closed orestis.malaspin requested to merge add_link_in_readme into main
4 files
+ 283
244
Compare changes
  • Side-by-side
  • Inline
Files
4
 
import CommanderCommand from '../../CommanderCommand';
 
import Config from '../../../config/Config';
 
import ExerciseRunHelper from '../../../helpers/Dojo/ExerciseRunHelper';
 
 
 
class AssignmentRunCommand extends CommanderCommand {
 
protected commandName: string = 'run';
 
 
protected defineCommand() {
 
// This command is synced with the "exercise run" command
 
this.command
 
.description('locally run the assignment as an exercise')
 
.option('-p, --path <value>', 'exercise path', Config.folders.defaultLocalExercise)
 
.option('-v, --verbose', 'verbose mode (display docker compose logs in live)')
 
.action(this.commandAction.bind(this));
 
}
 
 
protected async commandAction(options: { path: string, verbose: boolean }): Promise<void> {
 
await ExerciseRunHelper.run(options);
 
}
 
}
 
 
 
export default new AssignmentRunCommand();
 
\ No newline at end of file
Loading