Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
MPSD Computational Science
mpsd-software-manager
Commits
ffc7fc2c
Commit
ffc7fc2c
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
change the name of the map to something sensible
parent
0cd18a1f
No related branches found
Branches containing commit
No related tags found
1 merge request
!118
add status command arguments
Pipeline
#387910
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mpsd_software_manager/mpsd_software.py
+4
-4
4 additions, 4 deletions
src/mpsd_software_manager/mpsd_software.py
with
4 additions
and
4 deletions
src/mpsd_software_manager/mpsd_software.py
+
4
−
4
View file @
ffc7fc2c
...
...
@@ -1375,7 +1375,7 @@ def pretty_print_spec(spec: str) -> None:
- build_system in yellow (everything that starts with build_system=)
- architecture in purple (everything that starts with arch=)
"""
key_deviders
=
{
color_map
=
{
"
%
"
:
"
green
"
,
"
+
"
:
"
cyan
"
,
"
~
"
:
"
cyan
"
,
...
...
@@ -1386,12 +1386,12 @@ def pretty_print_spec(spec: str) -> None:
prev_color
=
""
for
flag
in
key_deviders
.
keys
():
for
flag
in
color_map
.
keys
():
# If the flag is in the spec string,
# replace it with: previous closing colour, new colour, flag
if
flag
in
spec
:
spec
=
spec
.
replace
(
flag
,
f
"
{
prev_color
}
[
{
key_deviders
[
flag
]
}
]
{
flag
}
"
,
1
)
prev_color
=
f
"
[/
{
key_deviders
[
flag
]
}
]
"
# for next iter
spec
=
spec
.
replace
(
flag
,
f
"
{
prev_color
}
[
{
color_map
[
flag
]
}
]
{
flag
}
"
,
1
)
prev_color
=
f
"
[/
{
color_map
[
flag
]
}
]
"
# for next iter
# Add the final closing tag to the spec string
spec
+=
prev_color
...
...
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