mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
finished options for running loader scripts. Added boilerplate for simulating logins
This commit is contained in:
parent
d5c0ac7a0c
commit
cb3cfe3a6d
3 changed files with 162 additions and 55 deletions
|
@ -47,4 +47,13 @@ class TerminalHelper:
|
|||
elif choice in valid:
|
||||
return valid[choice]
|
||||
else:
|
||||
logger.info("Please respond with 'yes' or 'no' " "(or 'y' or 'n').\n")
|
||||
logger.info("Please respond with 'yes' or 'no' " "(or 'y' or 'n').\n")
|
||||
|
||||
def print_debug(print_condition: bool, print_statement: str):
|
||||
"""This function reduces complexity of debug statements
|
||||
in other functions.
|
||||
It uses the logger to write the given print_statement to the
|
||||
terminal if print_condition is TRUE"""
|
||||
# DEBUG:
|
||||
if print_condition:
|
||||
logger.info(print_statement)
|
Loading…
Add table
Add a link
Reference in a new issue