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
a91c7b4e
Commit
a91c7b4e
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
AssignmentCheck => Update log function
parent
3563356a
No related branches found
No related tags found
No related merge requests found
Pipeline
#28926
passed
1 year ago
Stage: code_quality
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
NodeApp/src/commander/assignment/subcommands/AssignmentCheckCommand.ts
+8
-4
8 additions, 4 deletions
...ommander/assignment/subcommands/AssignmentCheckCommand.ts
with
8 additions
and
4 deletions
NodeApp/src/commander/assignment/subcommands/AssignmentCheckCommand.ts
+
8
−
4
View file @
a91c7b4e
...
...
@@ -32,14 +32,18 @@ class AssignmentCheckCommand extends CommanderCommand {
let
spinner
:
ora
.
Ora
;
if
(
verbose
)
{
let
buildPhase
:
boolean
=
true
;
assignmentValidator
.
events
.
on
(
'
logs
'
,
(
log
:
string
,
_
error
:
boolean
,
displayable
:
boolean
,
_currentStep
:
string
,
currentSubStep
:
string
)
=>
{
let
buildPhase
:
boolean
|
undefined
=
undefined
;
assignmentValidator
.
events
.
on
(
'
logs
'
,
(
log
:
string
,
error
:
boolean
,
displayable
:
boolean
,
_currentStep
:
string
,
currentSubStep
:
string
)
=>
{
for
(
const
line
of
log
.
split
(
'
\n
'
)
)
{
if
(
currentSubStep
==
'
COMPOSE_RUN
'
&&
buildPhase
&&
line
!=
''
&&
!
line
.
startsWith
(
'
#
'
)
)
{
if
(
displayable
&&
buildPhase
==
undefined
&&
line
.
startsWith
(
'
#
'
)
)
{
buildPhase
=
true
;
}
if
(
currentSubStep
==
'
COMPOSE_RUN
'
&&
buildPhase
===
true
&&
line
!=
''
&&
!
line
.
startsWith
(
'
#
'
)
)
{
buildPhase
=
false
;
}
if
(
displayable
&&
(
options
.
superVerbose
||
!
buildPhase
)
)
{
if
(
displayable
&&
(
options
.
superVerbose
||
buildPhase
===
false
)
)
{
console
.
log
(
line
);
}
}
...
...
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