Skip to content
Snippets Groups Projects
Select Git revision
  • 74614ffaefe18694aae843743efff89f4277c3a3
  • main default protected
  • jw_sonar
  • v6.0.0 protected
  • interactive-mode-preference
  • bedran_exercise-list
  • add_route_user
  • Jw_sonar_backup
  • exercise_list_filter
  • assignment_filter
  • add_route_assignments
  • move-to-esm-only
  • 6.0.0-dev
  • Pre-alpha
  • 5.0.0
  • Latest
  • 4.2.0
  • 4.1.1
  • 4.1.0
  • 4.0.1
  • 4.0.0
  • 3.5.0
  • 3.4.2
  • 3.4.1
  • 3.3.0
  • 3.2.3
  • 3.2.2
  • 3.2.0
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 3.0.1
32 results

ExerciseCreateCommand.ts

Blame
  • AssignmentCommand.ts 1.28 KiB
    import CommanderCommand            from '../CommanderCommand';
    import AssignmentCreateCommand     from './subcommands/AssignmentCreateCommand';
    import AssignmentPublishCommand    from './subcommands/AssignmentPublishCommand';
    import AssignmentUnpublishCommand  from './subcommands/AssignmentUnpublishCommand';
    import AssignmentCheckCommand      from './subcommands/AssignmentCheckCommand';
    import AssignmentRunCommand        from './subcommands/AssignmentRunCommand';
    import AssignmentCorrectionCommand from './subcommands/correction/AssignmentCorrectionCommand';
    
    
    class AssignmentCommand extends CommanderCommand {
        protected commandName: string = 'assignment';
    
        protected defineCommand() {
            this.command
            .description('manage an assignment');
        }
    
        protected defineSubCommands() {
            AssignmentCreateCommand.registerOnCommand(this.command);
            AssignmentCheckCommand.registerOnCommand(this.command);
            AssignmentRunCommand.registerOnCommand(this.command);
            AssignmentPublishCommand.registerOnCommand(this.command);
            AssignmentUnpublishCommand.registerOnCommand(this.command);
            AssignmentCorrectionCommand.registerOnCommand(this.command);
        }
    
        protected async commandAction(): Promise<void> { }
    }
    
    
    export default new AssignmentCommand();