Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-image-creator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
itminedu
snf-image-creator
Commits
e2cf65d3
Commit
e2cf65d3
authored
13 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
Add new-line printing option in printing functions
parent
22a6d232
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image_creator/util.py
+6
-6
6 additions, 6 deletions
image_creator/util.py
with
6 additions
and
6 deletions
image_creator/util.py
+
6
−
6
View file @
e2cf65d3
...
...
@@ -49,16 +49,16 @@ def get_command(command):
return
find_sbin_command
(
command
,
e
)
def
error
(
msg
):
puts_err
(
colored
.
red
(
"
Error: %s
\n
"
%
msg
))
def
error
(
msg
,
new_line
=
True
):
puts_err
(
colored
.
red
(
"
Error: %s
\n
"
%
msg
)
,
new_line
)
def
warn
(
msg
):
puts_err
(
colored
.
yellow
(
"
Warning: %s
"
%
msg
))
def
warn
(
msg
,
new_line
=
True
):
puts_err
(
colored
.
yellow
(
"
Warning: %s
"
%
msg
)
,
new_line
)
def
success
(
msg
):
puts
(
colored
.
green
(
msg
))
def
success
(
msg
,
new_line
=
True
):
puts
(
colored
.
green
(
msg
)
,
new_line
)
def
progress_generator
(
label
=
''
,
n
=
100
):
...
...
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