Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cube-doctor
Commits
b9d564390633
Commit
ed99aa92
authored
Aug 05, 2021
by
Laurent Peuch
Browse files
feat(misc): add colors to repo.run_command log
parent
4d807b86c9bd
Pipeline
#74356
passed with stage
in 1 minute and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cube_doctor/__init__.py
View file @
b9d56439
...
...
@@ -293,7 +293,7 @@ class Repository:
f
"cd
{
self
.
path
}
&&
{
command
}
"
,
shell
=
True
).
decode
()
else
:
print
(
f
"
>>
{
command
}
"
)
print
(
f
"
\033
[1;31m>>
\033
[0m
\033
[0;34m
{
command
}
\033
[0m
"
)
return
subprocess
.
check_call
(
f
"cd
{
self
.
path
}
&&
{
command
}
"
,
shell
=
True
)
def
read_file
(
self
,
file_name
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment