aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/commands.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow codegen of `keymap.json` => `keymap.c` without requiring layers/layout ↵Nick Brassel2024-11-241-1/+1
| | | | etc. (#23451)
* Merge remote-tracking branch 'origin/master' into developQMK Bot2024-08-121-1/+6
|\
| * Userspace: add support for adding environment variables during build (#22887)0.25.19Nick Brassel2024-08-121-1/+6
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2024-07-241-0/+6
|\|
| * [CLI] Only generate files if contents change. (#24038)Nick Brassel2024-07-241-0/+6
| | | | | | Don't overwrite if the content doesn't change.
* | [CLI] Force `dump_lines()` to always use Unix line endings (#23954)Ryan2024-06-191-1/+3
|/
* [CLI] Don't `exit()` when certain exceptions occur. (#23442)Nick Brassel2024-06-151-1/+2
|
* QMK Userspace (#22222)Nick Brassel2023-11-281-0/+6
| | | | Co-authored-by: Duncan Sutherland <[email protected]>
* CLI parallel search updates (#22525)Nick Brassel2023-11-221-2/+2
|
* CLI refactoring for common build target APIs (#22221)Nick Brassel2023-11-151-162/+2
|
* Add `qmk ci-validate-aliases` (#22205)Nick Brassel2023-10-061-4/+7
|
* Remove layout aliases from keyboard_aliases.hjson (#21658)Joel Challis2023-08-011-3/+0
|
* Consolidate `KEYBOARD_OUTPUT`+`KEYMAP_OUTPUT`=>`INTERMEDIATE_OUTPUT` (#21272)Nick Brassel2023-06-211-15/+11
|
* Append user variables to the end of make command (#20177)Albert Y2023-04-031-3/+3
|
* Increase verbosity of make command (#20172)Albert Y2023-03-211-0/+3
|
* Format DD mappings and schemas (#18924)Ryan2022-11-081-1/+1
|
* [CLI] Ensure consistent clean behaviour (#18781)Joel Challis2022-10-201-3/+32
|
* Correctly build keymap.json containing additional config (#18766)Joel Challis2022-10-191-5/+4
|
* Merge remote-tracking branch 'origin/master' into developQMK Bot2022-03-181-104/+1
|\
| * Relocate CLI git interactions (#16682)Joel Challis2022-03-181-104/+1
| |
* | Merge remote-tracking branch 'origin/master' into developzvecr2022-03-181-37/+17
|\|
| * [CLI] Add common util for dumping generated content (#16674)Joel Challis2022-03-181-37/+17
|/
* CLI: Validate JSON keymap input (#16261)Erovia2022-02-281-4/+15
| | | | | | | | | | | | | | | | | | | | | * Fix schema validator It should use the passed schema. * Add required attributes to keymap schema * Rework subcommands to validate the JSON keymaps The 'compile', 'flash' and 'json2c' subcommands were reworked to add JSON keymap validation so error is reported for non-JSON and non-compliant-JSON inputs. * Fix required fields in keymap schema * Add tests * Fix compiling keymaps directly from keymap directory * Schema should not require version for now.
* Migrate more makefile utilities to builddefs sub-directory (#16002)Joel Challis2022-02-101-1/+1
|
* `qmk doctor`: display qmk_firmware version tag (#16155)Ryan2022-02-011-0/+8
|
* Macros in JSON keymaps (#14374)Zach White2021-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macros in json keymaps * add advanced macro support to json * add a note about escaping macro strings * add simple examples * format json * add support for language specific keymap extras * switch to dictionaries instead of inline text for macros * use SS_TAP on the innermost tap keycode * add the new macro format to the schema * document the macro limit * add the json keyword for syntax highlighting * fix format that vscode screwed up * Update feature_macros.md * add tests for macros * change ding to beep * add json support for SENDSTRING_BELL * update doc based on feedback from sigprof * document host_layout * remove unused var * improve carriage return handling * support tab characters as well * Update docs/feature_macros.md Co-authored-by: Nick Brassel <[email protected]> * escape backslash characters * format * flake8 * Update quantum/quantum_keycodes.h Co-authored-by: Nick Brassel <[email protected]>
* New CLI subcommand to create clang-compatible compilation database ↵Bao2021-09-161-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (`compile_commands.json`) (#14370) * pulled source from dev branch * missed a file from origin * formatting * revised argument names. relaxed matching rules to work for avr too * add docstrings * added docs. tightened up regex * remove unused imports * cleaning up command file. use existing qmk dir constant * rename parser library file * move lib functions into command file. there are only 2 and they aren't large * currently debugging... * more robustly find config * updated docs * remove unused imports * reuse make executable from the main make command * pulled source from dev branch * missed a file from origin * formatting * revised argument names. relaxed matching rules to work for avr too * add docstrings * added docs. tightened up regex * remove unused imports * cleaning up command file. use existing qmk dir constant * rename parser library file * move lib functions into command file. there are only 2 and they aren't large * currently debugging... * more robustly find config * updated docs * remove unused imports * reuse make executable from the main make command * remove MAKEFLAGS from environment for better control over process management * Update .gitignore Co-authored-by: Michael Forster <[email protected]> * add a usage line to docs * doc change as suggested Co-authored-by: Nick Brassel <[email protected]> * rename command * remove debug print statements * generate-compilation-database: fix arg handling * generate-comilation-db: improve error handling * use cli.run() instead of Popen() Co-authored-by: Xton <[email protected]> Co-authored-by: Christon DeWan <[email protected]> Co-authored-by: Michael Forster <[email protected]> Co-authored-by: Nick Brassel <[email protected]>
* Remove bin/qmk (#14231)Zach White2021-08-291-1/+1
| | | | | * Remove the bin/qmk script * remove bin/qmk from workflows
* `--parallel` improvements (#13800)ruro2021-08-181-3/+20
| | | | | | | * improve make parallel jobs support * document the --parallel option * disable the output-sync for interactive targets
* Port new_keyboard.sh to CLI (#13706)Ryan2021-07-301-0/+9
| | | Co-authored-by: Erovia <[email protected]>
* CLI: Add git and venv info to doctor's output (#13405)Erovia2021-07-101-1/+70
| | | | Most of the checks are saved from zvecr's retired 'up/status' subcommand PR.
* CLI: Add subcommand to generate version.h (#13151)Ryan2021-06-271-24/+38
|
* Merge remote-tracking branch 'origin/master' into developZach White2021-05-191-21/+2
|\ | | | | | | | | | | Resolved Conflicts: lib/python/qmk/tests/test_cli_commands.py util/install/fedora.sh
| * Align our subprocess usage with current best practices. (#12940)0.12.50Zach White2021-05-191-21/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Align our subprocess usage with current best practices. * remove unused import * Apply suggestions from code review Co-authored-by: Ryan <[email protected]> * fix the cpp invocation for older python * allow for unprompted installation * make sure qmk new-keyboard works on windows Co-authored-by: Ryan <[email protected]>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-091-1/+1
|\|
| * CLI: Use BASH if SHELL variable is not set (Windows) (#12847)Erovia2021-05-091-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-091-6/+28
|\|
| * Allow MAKE environment override for 'qmk clean' (#12473)Joel Challis2021-05-091-6/+28
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-241-0/+10
|\|
| * Add support for qmk_configurator style aliases (#11954)Zach White2021-03-241-0/+10
| | | | | | | | | | | | | | | | | | * 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
* | Consistently use bin/qmk when that script is called (#12286)Zach White2021-03-181-1/+1
| | | | | | | | | | * Pass QMK_BIN down to build_keyboard.mk * choose the correct qmk script
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-091-1/+1
|\|
| * Fix typo in `get_git_version()` (#12182)Ryan2021-03-101-1/+1
| |
* | Begin the process of deprecating bin/qmk in favor of the global cli (#12109)Zach White2021-03-071-0/+1
|/ | | | | * Begin the process of deprecating bin/qmk in favor of the global cli * Correctly set the qmk bin
* CLI: Fix json flashing (#11765)Erovia2021-02-011-1/+4
|
* Fix QMK_BUILDDATE (#11641)Zach White2021-01-201-1/+1
|
* Generate version.h when compiling json files (#11581)Zach White2021-01-171-3/+55
| | | | | | | | | * generate version.h when compiling json files * make flake8 happy * fix formatting and verbose * quiet up the compile output
* Improve the compile and flash subcommands (#11334)Zach White2021-01-161-12/+81
| | | | | | | | | | | | | | | | | | | * 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
* c2json: Fix TypeError on MSYS2 (#10709)Ryan2020-10-231-1/+2
|
* [CLI] Add c2json (#8817)0.10.30Erovia2020-10-061-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic keymap parsing finally works * Add 'keymap.json' creation to the qmk.keymap module * Add tests and fix formatting * Fix/exclude flake8 errors * Convert keymap.c to valid keymap.json * Fix some errors * Add tests * Finalize keymap.json creation, add json template * Add docs * Move pygments to the standard requirements * Add support for nameless layers, fix tests * Fix things after rebase * Add missing 'keymap' value. * Fix missing layer numbers from advanced keycodes Buckwich noticed that if the advanced keycode / layer toggling key contains a number, it goes missing. Now we properly handle them. Thx for noticing! * Apply suggestions from code review * fixup tests Co-authored-by: Zach White <[email protected]> Co-authored-by: skullY <[email protected]>