Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoCLI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
UI
DojoCLI
Merge requests
!4
Update file README.md
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Update file README.md
add_link_in_readme
into
main
Overview
0
Commits
4
Pipelines
4
Changes
4
Closed
orestis.malaspin
requested to merge
add_link_in_readme
into
main
1 year ago
Overview
0
Commits
4
Pipelines
4
Changes
4
Expand
0
0
Merge request reports
Viewing commit
611134eb
Prev
Next
Show latest version
4 files
+
283
−
244
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
611134eb
Merge branch 'add-assignment-run-command' into v3.3.0
· 611134eb
michael.minelli
authored
1 year ago
NodeApp/src/commander/assignment/subcommands/AssignmentRunCommand.ts
0 → 100644
+
24
−
0
Options
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