def init_color(no_color: bool) -> None:
global success_color, info_hl, info_color, warning_hl, warning_color, error_hl, error_color, highlight_color, \
color_reset
if no_color:
success_color = info_hl = info_color = warning_hl = warning_color = error_hl = error_color = highlight_color =\
color_reset = ""
else:
colorama.init()
评论列表
文章目录