]> git.donarmstrong.com Git - qmk_firmware.git/commit
Add CLI command for flashing a keyboard
authorjorgemanzo <jmanzo203689@gmail.com>
Sat, 5 Oct 2019 06:38:34 +0000 (23:38 -0700)
committerskullY <skullydazed@gmail.com>
Sat, 16 Nov 2019 07:06:07 +0000 (23:06 -0800)
commit897888db419239f013561b155de5993b1966820e
treedc9041ea683d9188961749aec7f511719fbde241
parent4f5b34af565d00e069d3f37b3faa8091608ed21f
Add CLI command for flashing a keyboard

A new CLI subcommand was added, flash, which behaves very similar to the already present compile CLI comamnd, but with the added ability to target a bootloader. The command is used like so: qmk flash [-h] [-b] [-kb KEYBOARD] [-km KEYMAP] [-bl BOOTLOADER] [filename].

A -kb <keyboard> and -km <keymap> is expected, or a configurator export JSON filename. A bootloader can be specified using -bl <target>, and if left unspecified, the target is assumed to be :flash. -bl can be used to list the available bootloaders.

If -km <keymap> is provided, but no -kb <keyboard>, then a message is printed suggesting the user to run qmk list_keyboards.
docs/cli.md
lib/python/qmk/cli/__init__.py
lib/python/qmk/cli/compile.py
lib/python/qmk/cli/flash.py [new file with mode: 0644]
lib/python/qmk/commands.py [new file with mode: 0644]
lib/python/qmk/tests/test_cli_commands.py