Main function.
()
| 383 | |
| 384 | |
| 385 | def main() -> int: |
| 386 | """Main function.""" |
| 387 | args = parse_args() |
| 388 | if args.supported_boards: |
| 389 | print(",".join(DEFAULT_BOARDS_NAMES)) |
| 390 | return 0 |
| 391 | if args.add_extra_esp32_libs: |
| 392 | LIBS.extend(EXTRA_LIBS) |
| 393 | |
| 394 | # Set the working directory to the script's parent directory. |
| 395 | run_args = create_concurrent_run_args(args) |
| 396 | start_time = time.time() |
| 397 | rtn = concurrent_run(args=run_args) |
| 398 | time_taken = time.strftime("%Mm:%Ss", time.gmtime(time.time() - start_time)) |
| 399 | locked_print(f"Compilation finished in {time_taken}.") |
| 400 | return rtn |
| 401 | |
| 402 | |
| 403 | if __name__ == "__main__": |
no test coverage detected