Skip to content

Commit 6bfc053

Browse files
committed
Add color to the "sbase mkdir DIR" success message
1 parent 907737d commit 6bfc053

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

seleniumbase/console_scripts/sb_mkdir.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def invalid_run_command(msg=None):
4343

4444
def main():
4545
colorama.init(autoreset=True)
46+
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
4647
c5 = colorama.Fore.RED + colorama.Back.LIGHTYELLOW_EX
4748
cr = colorama.Style.RESET_ALL
4849
error_msg = None
@@ -355,8 +356,10 @@ def main():
355356
file = codecs.open(file_path, "w+", "utf-8")
356357
file.writelines("\r\n".join(data))
357358
file.close()
358-
print('''\n* Directory "%s" was created with config files '''
359-
'''and sample tests! *\n''' % dir_name)
359+
success = (
360+
'\n' + c1 + '* Directory "' + dir_name + '" was created '
361+
'with config files and sample tests! *' + cr + '\n')
362+
print(success)
360363

361364

362365
if __name__ == "__main__":

0 commit comments

Comments
 (0)