Skip to content

Commit 2f52440

Browse files
committed
add some startup messaging
1 parent 77e97ad commit 2f52440

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

adabot/circuitpython_libraries.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,12 +1109,18 @@ def print_issue_overview(*insights):
11091109
github_token = False
11101110

11111111
if __name__ == "__main__":
1112+
startup_message = ["Running CircuitPython Library checks...",
1113+
"Report Date: {}".format(datetime.datetime.now().strftime("%d %B %Y, %I:%M%p"))
1114+
]
11121115
cmd_line_args = cmd_line_parser.parse_args()
11131116
error_depth = cmd_line_args.error_depth
1117+
startup_message.append(" - Depth for listing libraries with errors: {}".format(error_depth))
11141118
verbosity = cmd_line_args.verbose
11151119
github_token = cmd_line_args.gh_token
1120+
startup_message.append(" - Prompts for the GitHub Token are {}.".format(("enabled" if github_token else "disabled")))
11161121
if cmd_line_args.output_file:
11171122
output_filename = cmd_line_args.output_file
1123+
startup_message.append(" - Report output will be saved to: {}".format(output_filename))
11181124
if cmd_line_args.validator:
11191125
validators = []
11201126
for func in cmd_line_args.validator.split(","):
@@ -1127,7 +1133,11 @@ def print_issue_overview(*insights):
11271133
"Available validators are: {1}".format(func.strip(),
11281134
", ".join([vals for vals in sys.modules[__name__].__dict__ if vals.startswith("validate")])))
11291135
sys.exit()
1136+
startup_message.append(" - Only these selected validators will run: {}".format(", ".join(name.__name__ for name in validators)))
11301137
try:
1138+
for message in startup_message:
1139+
output_handler(message)
1140+
output_handler()
11311141
run_library_checks()
11321142
except:
11331143
if output_filename is not None:

0 commit comments

Comments
 (0)