1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

fix stdin stder quoting

This commit is contained in:
Kelly Brazil
2022-05-26 16:03:30 -07:00
parent 28ebb4e8dd
commit 08fbde0e8f
13 changed files with 27 additions and 23 deletions

View File

@ -31,7 +31,7 @@ def _safe_print(string: str, sep=' ', end='\n', file=sys.stdout, flush=False) ->
def warning_message(message_lines: List[str]) -> None:
"""
Prints warning message to STDERR for non-fatal issues. The first line
Prints warning message to `STDERR` for non-fatal issues. The first line
is prepended with 'jc: Warning - ' and subsequent lines are indented.
Wraps text as needed based on the terminal width.
@ -67,7 +67,7 @@ def warning_message(message_lines: List[str]) -> None:
def error_message(message_lines: List[str]) -> None:
"""
Prints an error message to STDERR for fatal issues. The first line is
Prints an error message to `STDERR` for fatal issues. The first line is
prepended with 'jc: Error - ' and subsequent lines are indented.
Wraps text as needed based on the terminal width.
@ -114,7 +114,7 @@ def is_compatible(compatible: List) -> bool:
def compatibility(mod_name: str, compatible: List, quiet: bool = False) -> None:
"""
Checks for the parser's compatibility with the running OS platform and
prints a warning message to STDERR if not compatible and quiet=False.
prints a warning message to `STDERR` if not compatible and quiet=False.
Parameters: