Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Axii
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Software
ArmarX
Meta
Axii
Commits
d0f7e65e
Commit
d0f7e65e
authored
3 years ago
by
Christian Dreher
Browse files
Options
Downloads
Patches
Plain Diff
fix: Minor space typo.
parent
3ec8042a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
armarx_setup/core/util/cli.py
+1
-0
1 addition, 0 deletions
armarx_setup/core/util/cli.py
armarx_setup/core/util/commands.py
+2
-2
2 additions, 2 deletions
armarx_setup/core/util/commands.py
with
3 additions
and
2 deletions
armarx_setup/core/util/cli.py
+
1
−
0
View file @
d0f7e65e
...
...
@@ -15,6 +15,7 @@ def print_full_width_heading(text: str, sep_color="white", indentation=3):
console
.
print
(
f
"
[
{
sep_color
}
]┏
{
'
━
'
*
(
term_width
-
2
)
}
┓
"
)
console
.
print
(
f
"
[
{
sep_color
}
]┠
{
'
─
'
*
indentation
}
[/]
{
text
}
[
{
sep_color
}
]
{
'
─
'
*
(
term_width
-
(
indentation
+
2
)
-
text_width
-
2
)
}
┨[/]
"
)
console
.
print
(
f
"
[
{
sep_color
}
]┗
{
'
━
'
*
(
term_width
-
2
)
}
┛
"
)
console
.
print
(
"
Visit my [link=https://www.willmcgugan.com]blog[/link]!
"
)
def
prompt_options
(
...
...
This diff is collapsed.
Click to expand it.
armarx_setup/core/util/commands.py
+
2
−
2
View file @
d0f7e65e
...
...
@@ -7,7 +7,7 @@ from armarx_setup import console
def
run
(
cmd
,
cwd
=
None
,
capture_output
=
False
,
quiet
=
False
):
in_cwd
=
""
if
cwd
is
None
else
f
"
in
'
{
cwd
}
'"
in_cwd
=
""
if
cwd
is
None
else
f
"
in
'
{
cwd
}
'"
if
not
quiet
:
console
.
print
(
f
"
\t
Run
'
{
cmd
}
'
{
in_cwd
}
...
"
)
...
...
@@ -20,7 +20,7 @@ def run(cmd, cwd=None, capture_output=False, quiet=False):
r
=
subprocess
.
run
(
cmd
,
**
kwargs
)
if
r
.
returncode
!=
0
:
raise
error
.
CommandFailed
(
cmd
=
cmd
,
msg
=
f
"
with return code
{
r
.
returncode
}
{
in_cwd
}
.
"
,
raise
error
.
CommandFailed
(
cmd
=
cmd
,
msg
=
f
"
with return code
{
r
.
returncode
}{
in_cwd
}
.
"
,
stderr
=
r
.
stderr
.
decode
().
strip
()
if
capture_output
else
None
)
if
capture_output
:
...
...
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