summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-181-6/+16
|\
| * Make sure 'cformat' only runs on core files (#12909)Erovia2021-05-181-6/+16
| | | | | | Co-authored-by: Zach White <skullydazed@drpepper.org>
* | Use milc.subcommand.config instead of qmk.cli.config (#12915)Zach White2021-05-162-118/+1
| | | | | | | | | | | | | | * Use milc.subcommand.config instead * pyformat * remove the config test
* | Add setup, clone, and env to the list of commands we allow even with broken ↵Zach White2021-05-121-30/+42
| | | | | | | | modules (#12868)
* | Merge remote-tracking branch 'origin/master' into developZach White2021-05-101-25/+124
|\| | | | | | | | | | | | | | | Conflicts: bin/qmk lib/python/qmk/cli/__init__.py Merge conflicts fixed by skullydazed.
| * Move the module checking and updating to lib/python (#12416)Zach White2021-05-101-24/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move the module checking and updating to lib/python * make flake8 happy * Update lib/python/qmk/cli/__init__.py Co-authored-by: Erovia <Erovia@users.noreply.github.com> * prompt the user to disable developer mode * pyformat * flake8 Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-104-45/+127
|\|
| * Improve our CI tests (#11476)Zach White2021-05-104-45/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add a test and dry-run to qmk generate-api * add a dry-run to qmk pyformat * Add a --dry-run to qmk cformat * reverse the order of nose2 and flake8 tests * run CI test against cformat and pyformat * fix programming errors * tweak job name * fix argument * refine the files we select * fix stack trace in --ci * make cformat exit clean * fix c file extensions * decouple CI from pyformat * remove --ci arg * make ci happy * use the environment var instead * change output to text * fix log message * replace tabs
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-091-3/+3
|\|
| * fix the makefile snippet so flake8 and yapf don't fight (#12849)Zach White2021-05-091-3/+3
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-091-1/+4
|\|
| * [CI] Format code according to conventions (#12838)github-actions[bot]2021-05-101-1/+4
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-093-1/+89
|\|
| * Add script to perform parallel builds. (#12497)Nick Brassel2021-05-093-1/+89
| | | | | | Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-091-3/+3
|\|
| * Align qmk info ascii logic with milc logging (#11627)Joel Challis2021-05-091-3/+3
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-091-6/+2
|\|
| * Allow MAKE environment override for 'qmk clean' (#12473)Joel Challis2021-05-091-6/+2
| |
* | New command: qmk console (#12828)Zach White2021-05-082-0/+303
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stash poc * stash * tidy up implementation * Tidy up slightly for review * Tidy up slightly for review * Bodge environment to make tests pass * Refactor away from asyncio due to windows issues * Filter devices * align vid/pid printing * Add hidapi to the installers * start preparing for multiple hid_listeners * udev rules for hid_listen * refactor to move closer to end state * very basic implementation of the threaded model * refactor how vid/pid/index are supplied and parsed * windows improvements * read the report directly when usage page isn't available * add per-device colors, the choice to show names or numbers, and refactor * add timestamps * Add support for showing bootloaders * tweak the color for bootloaders * Align bootloader disconnect with connect color * add support for showing all bootloaders * fix the pyusb check * tweaks * fix exception * hide a stack trace behind -v * add --no-bootloaders option * add documentation for qmk console * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * pyformat * clean up and flesh out KNOWN_BOOTLOADERS Co-authored-by: zvecr <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
* Shim cli to new keyboard script (#12780)Joel Challis2021-05-022-0/+12
| | | | | | | * Shim cli to new keyboard script * Shim cli to new keyboard script * Add docs
* Fix unused import in recent generation code (#12781)Joel Challis2021-05-021-1/+1
|
* Allow <keyboard>.h to be optional when going data driven (#12706)Joel Challis2021-05-012-0/+61
| | | | | | | | | | | | | * Allow <keyboard>.h to be optional when going data driven * Remove stub files as no longer required * Rename function * Remove include of layouts.h for now * Take advantage of type=keyboard_folder * Take advantage of type=keyboard_folder - kb should still be mandatory
* Add support for tab completion (#12411)Zach White2021-04-1416-31/+50
| | | | | | | * Add support for tab completion * make flake8 happy * Add documentation
* `qmk chibios-confmigrate`: Make `-i` and `-r` required (#12515)Ryan2021-04-081-2/+2
|
* `qmk doctor`: Fix WSL /mnt check (#12466)Ryan2021-04-021-1/+1
|
* qmk doctor: Display macOS and Windows versions, and add WSL warning for /mnt ↵Ryan2021-04-021-4/+9
| | | | (#12441)
* Format code according to conventions (#12437)github-actions[bot]2021-03-311-1/+1
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* Allow for clang-format up to v20. (#12407)Nick Brassel2021-03-311-1/+1
|
* Add a `qmk format-json` command that will format JSON files (#12372)Zach White2021-03-258-5/+73
| | | | | | | | | | | * Add a command to format json files * change to work after rebase * add test for qmk format-json * add documentation for qmk format-json * Update lib/python/qmk/cli/format/json.py
* [CI] Format code according to conventions (#12363)github-actions[bot]2021-03-241-5/+5
| | | | | | | | | | * Format code according to conventions * Update lib/python/qmk/cli/generate/api.py * Update lib/python/qmk/cli/generate/api.py Co-authored-by: QMK Bot <hello@qmk.fm> Co-authored-by: Zach White <skullydazed@gmail.com>
* Add support for qmk_configurator style aliases (#11954)Zach White2021-03-2411-39/+62
| | | | | | | | | * 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
* `qmk doctor`: Don't run udev checks under WSL (#12231)Ryan2021-03-191-5/+11
|
* `qmk generate-rules-mk`: add `--escape` switch for makefile logic (#12101)Ryan2021-03-041-1/+5
|
* Migrate make_dfu_header to CLI (#12061)Joel Challis2021-02-282-0/+60
| | | | | | | | | | | | | * Migrate make_dfu_header to CLI * lint fixes * Update lib/python/qmk/cli/generate/dfu_header.py Co-authored-by: Ryan <fauxpark@gmail.com> * Rename object Co-authored-by: Ryan <fauxpark@gmail.com>
* Fix generated file output while target exists (#12062)Joel Challis2021-02-286-9/+9
|
* Fix develop (#12039)Zach White2021-02-274-7/+14
| | | | | | | | | Fixes file encoding errors on Windows, and layouts not correctly merging into info.json. * force utf8 encoding * correctly merge layouts and layout aliases * show what aliases point to
* bump to python 3.7 (#11408)Zach White2021-02-131-2/+20
|
* remove deprecated qmk json-keymap (#11823)Zach White2021-02-083-22/+0
|
* Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-073-20/+6
|\
| * Allow flash/compile to accept relative json paths (#11767)Joel Challis2021-02-073-20/+6
| | | | | | | | | | | | | | | | | | | | | | * Allow flash/compile to accept relative paths * Review suggestions * Review comments * Put back exists check otherwise stdin fails * fix lint
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-011-2/+2
|\|
| * CLI: Fix json flashing (#11765)Erovia2021-02-011-2/+2
| |
* | Create a system to map between info.json and config.h/rules.mk (#11548)Zach White2021-01-313-211/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generate rules.mk from a json mapping * generate rules.mk from a json mapping * support for config.h from json maps * improve the mapping system * document the mapping system * move data/maps to data/mappings * fix flake8 errors * fixup LED_MATRIX_DRIVER * remove product and description from the vision_division keymap level * reduce the complexity of generate-rules-mk * add tests for the generate commands * fix qmk doctor when submodules are not clean
* | ChibiOS conf migrations... take 11 (#11646)Nick Brassel2021-01-211-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |