Skip to content
Snippets Groups Projects
Commit e2cf65d3 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Add new-line printing option in printing functions

parent 22a6d232
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment