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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
UI
DojoCLI
Commits
d626b5bd
Commit
d626b5bd
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
ExerciceRun => Fix typo
parent
77a86e52
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
NodeApp/src/commander/exercise/ExerciseRunCommand.ts
+9
-9
9 additions, 9 deletions
NodeApp/src/commander/exercise/ExerciseRunCommand.ts
with
9 additions
and
9 deletions
NodeApp/src/commander/exercise/ExerciseRunCommand.ts
+
9
−
9
View file @
d626b5bd
...
@@ -56,7 +56,7 @@ class ExerciseRunCommand extends CommanderCommand {
...
@@ -56,7 +56,7 @@ class ExerciseRunCommand extends CommanderCommand {
let
haveResultsVolume
:
boolean
;
let
haveResultsVolume
:
boolean
;
// Step 1: Check requirements (if it's an exercise folder and if Docker d
e
amon is running)
// Step 1: Check requirements (if it's an exercise folder and if Docker da
e
mon is running)
{
{
console
.
log
(
chalk
.
cyan
(
'
Please wait while we are checking and creating dependencies...
'
));
console
.
log
(
chalk
.
cyan
(
'
Please wait while we are checking and creating dependencies...
'
));
...
@@ -92,13 +92,13 @@ class ExerciseRunCommand extends CommanderCommand {
...
@@ -92,13 +92,13 @@ class ExerciseRunCommand extends CommanderCommand {
// dojo_assignment.json validity
// dojo_assignment.json validity
{
{
const
spinner
:
ora
.
Ora
=
ora
({
const
spinner
:
ora
.
Ora
=
ora
({
text
:
`Checking
${
Config
.
assignment
.
filename
}
file`
,
text
:
`Checking
${
ClientsShared
Config
.
assignment
.
filename
}
file`
,
indent
:
8
indent
:
8
}).
start
();
}).
start
();
const
validationResults
=
SharedAssignmentHelper
.
validateDescriptionFile
(
`
${
options
.
path
}
/
${
Config
.
assignment
.
filename
}
`
);
const
validationResults
=
SharedAssignmentHelper
.
validateDescriptionFile
(
path
.
join
(
options
.
path
,
ClientsShared
Config
.
assignment
.
filename
)
);
if
(
!
validationResults
.
isValid
)
{
if
(
!
validationResults
.
isValid
)
{
spinner
.
fail
(
`The
${
Config
.
assignment
.
filename
}
file is invalid:
${
JSON
.
stringify
(
validationResults
.
errors
)
}
`
);
spinner
.
fail
(
`The
${
ClientsShared
Config
.
assignment
.
filename
}
file is invalid:
${
JSON
.
stringify
(
validationResults
.
errors
)
}
`
);
return
;
return
;
}
else
{
}
else
{
assignmentFile
=
validationResults
.
results
!
;
assignmentFile
=
validationResults
.
results
!
;
...
@@ -106,24 +106,24 @@ class ExerciseRunCommand extends CommanderCommand {
...
@@ -106,24 +106,24 @@ class ExerciseRunCommand extends CommanderCommand {
haveResultsVolume
=
assignmentFile
.
result
.
volume
!==
undefined
;
haveResultsVolume
=
assignmentFile
.
result
.
volume
!==
undefined
;
spinner
.
succeed
(
`The
${
Config
.
assignment
.
filename
}
file is valid`
);
spinner
.
succeed
(
`The
${
ClientsShared
Config
.
assignment
.
filename
}
file is valid`
);
}
}
// Docker d
e
amon
// Docker da
e
mon
{
{
const
spinner
:
ora
.
Ora
=
ora
({
const
spinner
:
ora
.
Ora
=
ora
({
text
:
`Checking Docker d
e
amon`
,
text
:
`Checking Docker da
e
mon`
,
indent
:
4
indent
:
4
}).
start
();
}).
start
();
try
{
try
{
await
execAsync
(
`cd "
${
Config
.
folders
.
defaultLocalExercise
}
";docker ps`
);
await
execAsync
(
`cd "
${
Config
.
folders
.
defaultLocalExercise
}
";docker ps`
);
}
catch
(
error
)
{
}
catch
(
error
)
{
spinner
.
fail
(
`The Docker d
e
amon is not running`
);
spinner
.
fail
(
`The Docker da
e
mon is not running`
);
return
;
return
;
}
}
spinner
.
succeed
(
`The Docker d
e
amon is running`
);
spinner
.
succeed
(
`The Docker da
e
mon is running`
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment