MCPcopy Create free account
hub / github.com/FastLED/FastLED / main

Function main

ci/ci-compile-concurrent-backup.py:385–400  ·  view source on GitHub ↗

Main function.

()

Source from the content-addressed store, hash-verified

383
384
385def 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
403if __name__ == "__main__":

Callers 1

Calls 6

concurrent_runFunction · 0.90
locked_printFunction · 0.90
timeMethod · 0.80
parse_argsFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected