finished options for running loader scripts. Added boilerplate for simulating logins

This commit is contained in:
CocoByte 2023-10-24 00:23:45 -06:00
parent d5c0ac7a0c
commit cb3cfe3a6d
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
3 changed files with 162 additions and 55 deletions

View file

@ -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)