mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +02:00
Parsing logic
This commit is contained in:
parent
fd4809ec66
commit
24cb865ee3
9 changed files with 526 additions and 191 deletions
|
@ -2,6 +2,7 @@ import logging
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class TerminalColors:
|
||||
"""Colors for terminal outputs
|
||||
(makes reading the logs WAY easier)"""
|
||||
|
@ -17,8 +18,8 @@ class TerminalColors:
|
|||
UNDERLINE = "\033[4m"
|
||||
BackgroundLightYellow = "\033[103m"
|
||||
|
||||
class TerminalHelper:
|
||||
|
||||
class TerminalHelper:
|
||||
def query_yes_no(question: str, default="yes") -> bool:
|
||||
"""Ask a yes/no question via raw_input() and return their answer.
|
||||
|
||||
|
@ -56,4 +57,4 @@ class TerminalHelper:
|
|||
terminal if print_condition is TRUE"""
|
||||
# DEBUG:
|
||||
if print_condition:
|
||||
logger.info(print_statement)
|
||||
logger.info(print_statement)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue