Skip to content

Commit d09657f

Browse files
committed
Added log.line_break()
1 parent a9ba04f commit d09657f

6 files changed

Lines changed: 6 additions & 0 deletions

File tree

  • find-project-root/utils/lib
  • latin-locales/utils/lib
  • non-latin-locales/utils/lib
  • project-markers/utils/lib
  • remove-json-keys/src/remove_json_keys/lib
  • translate-messages/src/translate_messages/lib

find-project-root/utils/lib/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def dim(msg: str, *args, **kwargs) -> None : print(f'\n{colors.gry}{msg.format(*
2424
def error(msg: str, *args, **kwargs) -> None : print(f'\n{colors.br}ERROR: {msg.format(*args, **kwargs)}{colors.nc}')
2525
def info(msg: str, *args, end: str = '', **kwargs) -> None:
2626
print(f'\n{colors.by}{msg.format(*args, **kwargs)}{colors.nc}', end=end)
27+
def line_break() : print()
2728
def overwrite_print(msg: str, *args, **kwargs) -> None:
2829
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
2930
def success(msg: str, *args, **kwargs) -> None : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')

latin-locales/utils/lib/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def dim(msg: str, *args, **kwargs) -> None : print(f'\n{colors.gry}{msg.format(*
2424
def error(msg: str, *args, **kwargs) -> None : print(f'\n{colors.br}ERROR: {msg.format(*args, **kwargs)}{colors.nc}')
2525
def info(msg: str, *args, end: str = '', **kwargs) -> None:
2626
print(f'\n{colors.by}{msg.format(*args, **kwargs)}{colors.nc}', end=end)
27+
def line_break() : print()
2728
def overwrite_print(msg: str, *args, **kwargs) -> None:
2829
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
2930
def success(msg: str, *args, **kwargs) -> None : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')

non-latin-locales/utils/lib/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def dim(msg: str, *args, **kwargs) -> None : print(f'\n{colors.gry}{msg.format(*
2424
def error(msg: str, *args, **kwargs) -> None : print(f'\n{colors.br}ERROR: {msg.format(*args, **kwargs)}{colors.nc}')
2525
def info(msg: str, *args, end: str = '', **kwargs) -> None:
2626
print(f'\n{colors.by}{msg.format(*args, **kwargs)}{colors.nc}', end=end)
27+
def line_break() : print()
2728
def overwrite_print(msg: str, *args, **kwargs) -> None:
2829
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
2930
def success(msg: str, *args, **kwargs) -> None : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')

project-markers/utils/lib/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def dim(msg: str, *args, **kwargs) -> None : print(f'\n{colors.gry}{msg.format(*
2424
def error(msg: str, *args, **kwargs) -> None : print(f'\n{colors.br}ERROR: {msg.format(*args, **kwargs)}{colors.nc}')
2525
def info(msg: str, *args, end: str = '', **kwargs) -> None:
2626
print(f'\n{colors.by}{msg.format(*args, **kwargs)}{colors.nc}', end=end)
27+
def line_break() : print()
2728
def overwrite_print(msg: str, *args, **kwargs) -> None:
2829
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
2930
def success(msg: str, *args, **kwargs) -> None : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def info(msg: str, *args, end: str = '', **kwargs) -> None:
3535
print(f'\n{colors.by}{msg.format(*args, **kwargs)}{colors.nc}', end=end)
3636
def init_cmd(cli: sn) -> None:
3737
info(f"{cli.msgs.log_TYPE} '{cli.cmds[0]} --init' {cli.msgs.log_TO_CREATE_DEFAULT_CONFIG}\n")
38+
def line_break() : print()
3839
def overwrite_print(msg: str, *args, **kwargs) -> None:
3940
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
4041
def success(msg: str, *args, **kwargs) -> None : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def info(msg: str, *args, end: str = '', **kwargs) -> None:
3535
print(f'\n{colors.by}{msg.format(*args, **kwargs)}{colors.nc}', end=end)
3636
def init_cmd(cli: sn) -> None:
3737
info(f"{cli.msgs.log_TYPE} '{cli.cmds[0]} --init' {cli.msgs.log_TO_CREATE_DEFAULT_CONFIG}\n")
38+
def line_break() : print()
3839
def overwrite_print(msg: str, *args, **kwargs) -> None:
3940
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
4041
def success(msg: str, *args, **kwargs) -> None : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')

0 commit comments

Comments
 (0)