# build/cli.py import sys from .builder import build_main, build_tests, build_rp2040 from .utils import detect_platform_name def show_help(): print("Usage: python -m build.cli ") print("Commands: build, run (not implemented), test, debug (not implemented), clean (not implemented), macos, pico") def main(): if len(sys.argv) < 2: show_help() return cmd = sys.argv[1] match cmd: case "build" | "main": build_main() case "test": build_tests() case "pico" | "rp2040": build_rp2040() case "macos": build_main("macos") case "help" | "-h" | "--help": show_help() case _: print(f"Unknown command: {cmd}") if __name__ == '__main__': main()