Skip to content

Commit a09ad29

Browse files
committed
Colored log.tip() msgs cyan
1 parent d20e70b commit a09ad29

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

  • remove-json-keys/src/remove_json_keys/lib
  • translate-messages/src/translate_messages/lib

remove-json-keys/src/remove_json_keys/lib/log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
by='\x1b[1;33m', # bright yellow
1212
bo='\x1b[38;5;214m', # bright orange
1313
bg='\x1b[1;92m', # bright green
14+
bc='\x1b[1;96m', # bright cyan
1415
bw='\x1b[1;97m', # bright white
1516
dg='\x1b[32m', # dark green
1617
dy='\x1b[33m', # dark yellow
@@ -24,7 +25,7 @@ def info(msg, *args, end='', **kwargs) : print(f'\n{colors.by}{msg.format(*args,
2425
def overwrite_print(msg, *args, **kwargs):
2526
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
2627
def success(msg, *args, **kwargs) : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')
27-
def tip(msg, *args, **kwargs) : print(f'\n{colors.bo}TIP: {msg.format(*args, **kwargs)}{colors.nc}')
28+
def tip(msg, *args, **kwargs) : print(f'\n{colors.bc}TIP: {msg.format(*args, **kwargs)}{colors.nc}')
2829
def warn(msg, *args, **kwargs) : print(f'\n{colors.bo}WARNING: {msg.format(*args, **kwargs)}{colors.nc}')
2930

3031
def debug(msg, cli=None, *args, **kwargs):

translate-messages/src/translate_messages/lib/log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
by='\x1b[1;33m', # bright yellow
1212
bo='\x1b[38;5;214m', # bright orange
1313
bg='\x1b[1;92m', # bright green
14+
bc='\x1b[1;96m', # bright cyan
1415
bw='\x1b[1;97m', # bright white
1516
dg='\x1b[32m', # dark green
1617
dy='\x1b[33m', # dark yellow
@@ -24,7 +25,7 @@ def info(msg, *args, end='', **kwargs) : print(f'\n{colors.by}{msg.format(*args,
2425
def overwrite_print(msg, *args, **kwargs):
2526
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
2627
def success(msg, *args, **kwargs) : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')
27-
def tip(msg, *args, **kwargs) : print(f'\n{colors.bo}TIP: {msg.format(*args, **kwargs)}{colors.nc}')
28+
def tip(msg, *args, **kwargs) : print(f'\n{colors.bc}TIP: {msg.format(*args, **kwargs)}{colors.nc}')
2829
def warn(msg, *args, **kwargs) : print(f'\n{colors.bo}WARNING: {msg.format(*args, **kwargs)}{colors.nc}')
2930

3031
def debug(msg, cli=None, *args, **kwargs):

0 commit comments

Comments
 (0)