mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
29 lines
586 B
Python
29 lines
586 B
Python
import sys
|
|
from _ansi_utils import (
|
|
print_rule,
|
|
print_table_row,
|
|
strip_markdown,
|
|
wrap_text,
|
|
get_terminal_width,
|
|
)
|
|
|
|
HEADER_COLOR = sys.argv[1]
|
|
SEPARATOR_COLOR = sys.argv[2]
|
|
|
|
# Get terminal dimensions
|
|
term_width = get_terminal_width()
|
|
|
|
# Print title centered
|
|
print("{REVIEWER_NAME}".center(term_width))
|
|
|
|
rows = [
|
|
("Summary", "{REVIEW_SUMMARY}"),
|
|
]
|
|
|
|
print_rule(SEPARATOR_COLOR)
|
|
for key, value in rows:
|
|
print_table_row(key, value, HEADER_COLOR, 15, term_width - 20)
|
|
|
|
print_rule(SEPARATOR_COLOR)
|
|
print(wrap_text(strip_markdown("""{REVIEW_BODY}"""), term_width))
|