Add 'none of the above' to new-keyboard dev board prompt (#25998)
Some checks failed
Update API Data / api_data (push) Has been cancelled
CLI CI / test (push) Has been cancelled
Update feature branches after develop merge / feature_branch_update (riot) (push) Has been cancelled
Update feature branches after develop merge / feature_branch_update (xap) (push) Has been cancelled
Lint Format / lint (push) Has been cancelled
Regenerate Files / regen (push) Has been cancelled
Unit Tests / test (push) Has been cancelled

This commit is contained in:
Joel Challis 2026-02-16 02:18:04 +00:00 committed by GitHub
parent bef076f23e
commit f8daa3cc40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,7 +184,10 @@ def prompt_dev_board():
prompt_heading_subheading("Select Development Board", """For more information, see:
https://docs.qmk.fm/compatible_microcontrollers""")
return choice("Development Board?", dev_boards, default=dev_boards.index("promicro"))
filtered_dev_boards = dev_boards.copy()
filtered_dev_boards.append("none of the above")
return choice("Development Board?", filtered_dev_boards, default=len(filtered_dev_boards) - 1)
def prompt_mcu():
@ -222,10 +225,14 @@ def new_keyboard(cli):
real_name = cli.args.realname or cli.config.new_keyboard.name if cli.args.realname or cli.config.new_keyboard.name else prompt_name(user_name)
default_layout = cli.args.layout if cli.args.layout else prompt_layout()
mcu = None
if cli.args.type:
mcu = cli.args.type
else:
mcu = prompt_dev_board() if prompt_mcu_type() else prompt_mcu()
if prompt_mcu_type():
mcu = prompt_dev_board()
if not mcu or mcu == "none of the above":
mcu = prompt_mcu()
config = {}
if mcu in dev_boards: