summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/flash.py
Commit message (Collapse)AuthorAgeFilesLines
* Enable CLI flashing via mdloader (#14729)Joel Challis2021-10-151-5/+9
| | | | | | | * Enable CLI flashing via mdloader * remove flag * Update qmk flash help
* `--parallel` improvements (#13800)ruro2021-08-181-1/+1
| | | | | | | * improve make parallel jobs support * document the --parallel option * disable the output-sync for interactive targets
* Align our subprocess usage with current best practices. (#12940)Zach White2021-05-191-2/+3
| | | | | | | | | | | | | | | | | * Align our subprocess usage with current best practices. * remove unused import * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * fix the cpp invocation for older python * allow for unprompted installation * make sure qmk new-keyboard works on windows Co-authored-by: Ryan <fauxpark@gmail.com>
* Add support for tab completion (#12411)Zach White2021-04-141-3/+4
| | | | | | | * Add support for tab completion * make flake8 happy * Add documentation
* Add support for qmk_configurator style aliases (#11954)Zach White2021-03-241-1/+2
| | | | | | | | | * Add support for qmk_configurator style aliases * add the keyboard aliases to the api data * add support for a keyboard metadata file * make flake8 happy
* Allow flash/compile to accept relative json paths (#11767)Joel Challis2021-02-071-2/+1
| | | | | | | | | | | * Allow flash/compile to accept relative paths * Review suggestions * Review comments * Put back exists check otherwise stdin fails * fix lint
* CLI: Fix json flashing (#11765)Erovia2021-02-011-2/+2
|
* Improve the compile and flash subcommands (#11334)Zach White2021-01-161-5/+21
| | | | | | | | | | | | | | | | | | | * add support for --clean to compile and flash * compile standalone JSON keymaps without polluting the tree * Add support for passing environment vars to make * make flake8 happy * document changes to qmk compile and flash * add -e support to json export compiling * Fix python 3.6 * honor $MAKE * add support for parallel builds
* Return the make exit code for qmk compile and flash (#11402)Zach White2021-01-021-1/+2
|
* Add `st-flash` flash target (#9964)Sergey Vlasov2020-08-291-0/+1
| | | | | | | | * Add `st-flash` flash target Add support for flashing the firmware via the `st-flash` utility from the STLink Tools package (https://github.com/stlink-org/stlink). * Add `st-flash` to the `qmk flash -b` output
* Add decorators for determining keyboard and keymap based on current ↵skullydazed2020-03-131-17/+30
| | | | | | | | | | | | | | | | | | | directory (#8191) * Use pathlib everywhere we can * Improvements based on @erovia's feedback * rework qmk compile and qmk flash to use pathlib * style * Remove the subcommand_name argument from find_keyboard_keymap() * add experimental decorators * Create decorators for finding keyboard and keymap based on current directory. Decorators were inspired by @Erovia's brilliant work on the proof of concept.
* Use pathlib everywhere we can (#7872)skullydazed2020-02-171-21/+13
| | | | | | | | | | | | | | | | | | | | | | * Use pathlib everywhere we can * Update lib/python/qmk/path.py Co-Authored-By: Erovia <Erovia@users.noreply.github.com> * Update lib/python/qmk/path.py Co-Authored-By: Erovia <Erovia@users.noreply.github.com> * Improvements based on @erovia's feedback * rework qmk compile and qmk flash to use pathlib * style * Remove the subcommand_name argument from find_keyboard_keymap() Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* Update the flash cli command to use the user config (#8125)Erovia2020-02-081-2/+2
|
* Also fix flashZach White2019-12-081-2/+3
|
* Add flake8 to our test suite and fix all errors (#7379)skullydazed2019-11-201-8/+2
| | | | | | * Add flake8 to our test suite and fix all errors * Add some documentation
* format code according to conventions [skip ci]QMK Bot2019-11-161-1/+2
|
* Add CLI command for flashing a keyboardjorgemanzo2019-11-151-0/+87
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.