summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into developQMK Bot2021-11-141-17/+47
|\
| * Partially reinstate CI formatting process (#15155)Joel Challis2021-11-141-17/+47
| | | | | | | | | | | | | | * Partially reinstate CI formatting process * Fix exit code on clean run * Fix exit code on clean run
* | Merge remote-tracking branch 'upstream/master' into developNick Brassel2021-11-052-0/+47
|\|
| * CLI: Add 'cd' subcommand (#12584)Erovia2021-11-052-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CLI: Add 'cd' subcommand Go to your qmk_firmware dir with ease. * Fix for Windows and do not run if already under QMK Home * Make flake8 happy * Fix prompt for Windows * Make flake8 happy once again * I'll get it right eventually * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * Add subcommand to __init__.py and fixup after rebase * Update Windows code to use milc's run * Unify the subshell starting with os.execl * Exit with error msg when output is redirected to non-TTY. * Revert Windows-specific code Co-authored-by: Ryan <fauxpark@gmail.com>
* | Remove `BOOTMAGIC_ENABLE = lite` option (#15002)James Young2021-11-051-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove BOOTMAGIC_ENABLE=lite setting * change keyboard BOOTMAGIC_ENABLE rules Edits keyboard-level instances of `BOOTMAGIC_ENABLE = lite` to `BOOTMAGIC_ENABLE = yes`. * change keyboard BOOTMAGIC_ENABLE inline comments Edits keyboard-level BOOTMAGIC_ENABLE inline comments to "Enable Bootmagic Lite". * change keymap BOOTMAGIC_ENABLE rules Edits keymap-level instances of `BOOTMAGIC_ENABLE = lite` to `BOOTMAGIC_ENABLE = yes`. * change keymap BOOTMAGIC_ENABLE inline comments Edits/adds keymap-level BOOTMAGIC_ENABLE inline comments to read "Enable Bootmagic Lite". * change layout/user BOOTMAGIC_ENABLE rules/comments Edits instances of `BOOTMAGIC_ENABLE = lite` to `BOOTMAGIC_ENABLE = yes`. Edits/adds keymap-level BOOTMAGIC_ENABLE inline comments to read "Enable Bootmagic Lite". * update non-rules.mk BOOTMAGIC_ENABLE references in keyboards/ * remove docs references to Full Bootmagic * convert data-driven Bootmagic Lite instances * remove Bootmagic Lite bodge from data-driven generation * Merge remote-tracking branch 'upstream/develop' into rm/bootmagic-full_q4a * update docs/ja/config_options.md per mtei * update docs/faq_misc.md per mtei Remove remaining Full Bootmagic reference.
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-11-041-41/+38
|\|
| * Refactor new-keyboard to be python3.7 compatible (#14707)Mikkel Jeppesen2021-11-051-41/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use copy_tree from distutils for python 3.7 support * Bump python version in docs * Changed new-keyboard to use printf-style format strings * Use username for manunfacturer / maintainer * Update lib/python/qmk/cli/new/keyboard.py Co-authored-by: Zach White <skullydazed@drpepper.org> Co-authored-by: Zach White <skullydazed@drpepper.org>
* | Map `PRODUCT` define to `keyboard_name` (#14372)Ryan2021-11-051-1/+1
| | | | | | | | | | | | | | * Map `PRODUCT` define to `keyboard_name` * Fix tests * Fix last test
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-11-041-9/+23
|\|
| * `qmk docs`: Run `docsify serve` if available (#15056)Ryan2021-11-051-9/+23
| |
* | Enable CLI flashing via mdloader (#14729)Joel Challis2021-10-151-5/+9
| | | | | | | | | | | | | | * Enable CLI flashing via mdloader * remove flag * Update qmk flash help
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-10-043-1/+20
|\|
| * Allow community layouts to be specified in info.json (#14682)Zach White2021-10-043-1/+20
| | | | | | | | | | * move the community layout detection to python * fixup tests
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-09-276-13/+12
|\|
| * Cleanup issues identified by lgtm (#14459)Zach White2021-09-276-13/+12
| | | | | | | | | | * cleanup issues identified by lgtm * fix the git_status check
| * Change USBasp and bootloadHID bootloaders to lowercase (#14354)Ryan2021-09-101-2/+2
| |
* | compiledb: query include paths from gcc directly. (#14462)Nick Brassel2021-09-201-2/+12
| | | | | | | | | | | | | | | | | | * Query include paths from gcc directly. * Change to -isystem * qmk format-python * tests
* | New CLI subcommand to create clang-compatible compilation database ↵Bao2021-09-162-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (`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 <forster@google.com> * add a usage line to docs * doc change as suggested Co-authored-by: Nick Brassel <nick@tzarc.org> * 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 <cdewan@apple.com> Co-authored-by: Christon DeWan <cmdpix@mac.com> Co-authored-by: Michael Forster <forster@google.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
* | Remove bin/qmk (#14231)Zach White2021-08-293-5/+4
| | | | | | | | | | * Remove the bin/qmk script * remove bin/qmk from workflows
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-08-291-1/+7
|\|
| * ensure that the directory for sys.executable is in the user's path (#14229)Zach White2021-08-291-1/+7
| |
* | fix automatic directory for qmk lint (#14215)Zach White2021-08-281-5/+5
| |
* | Add check for non-assignment code in rules.mk (#12108)Zach White2021-08-291-41/+98
| | | | | | | | | | | | | | | | | | | | | | * Add check for non-assignment code in rules.mk * fix lint check * fix lint * fixup to reflect the final state of #8422 * fix lint
* | remove qmk console, which is now part of the global cli (#14206)Zach White2021-08-292-304/+0
|/
* Align some quantum sub-directories (#14134)Joel Challis2021-08-242-3/+3
| | | | | | | * Misc folder tidy * Review comments * Remove redundant entry
* Add config.h and rules.mk support for data driven keymaps (#12859)Joel Challis2021-08-183-37/+29
| | | | | | | | | | | * Add config.h and rules.mk support for data driven keymaps * tidy up after rebase * Rename key as it can contain more than just keyboard overrides * tidy up after rebase * Add validation
* `--parallel` improvements (#13800)ruro2021-08-183-5/+5
| | | | | | | * improve make parallel jobs support * document the --parallel option * disable the output-sync for interactive targets
* [CLI] Add qmk-hid bootloader detection support to `qmk console` (#14038)Drashna Jaelre2021-08-182-2/+7
| | | | | | | | | | | | | | | | | | | | | | * [CLI] Add qmk-hid bootloader detection support to `qmk console` * Remove duplicate entry Co-authored-by: Ryan <fauxpark@gmail.com> * Begrudgingly add lufa-ms * Add udev rules for hid bootloaders * Update util/udev/50-qmk.rules Co-authored-by: Sergey Vlasov <sigprof@gmail.com> * Fix VID/PID combos Co-authored-by: Sergey Vlasov <sigprof@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
* Add a lot more data to info.json (#13366)Zach White2021-08-164-71/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add some split data to info.json * add tags * add half of config_options.md to info.json * add support for designating master split * sort out split transport and primary * fix bad data in UNUSED_PINS * fixup custom transport * wip * allow for setting split right half keyboard matrix * add SPLIT_USB_DETECT * minor cleanup * fix an erroneous message * rework split.usb_detect * adding missing rgblight vars to info.json * add mouse_key to info.json * add all remaining options from docs/config_options.md * fix audio voices * qmk info: Change text output to use dotted notation * tweak layout output * resolve alias names * break out some functions to make flake8 happy * add a field for bootloader instructions * qmk generate-info-json: add a write-to-file argument Adds an argument that instructs qmk generate-info-json to write the output to a file instead of just to the terminal. * -arg_only, +action Because it was never my intention that one would have to specify a value for the argument that enables writing the file. * Bring qmk generate-info-json inline with other generate commands * pytest fixup * fix esca/getawayvan * fix data driven errors for bpiphany converters * features.force_nkro -> usb.force_nkro * split.primary->split.main * fix esca/getawayvan_f042 * fix the bpiphany converters for real * fix bpiphany/tiger_lily * Apply suggestions from code review Co-authored-by: Nick Brassel <nick@tzarc.org> * fix generate-api errors * fix matrix pin extraction for split boards * fix ploopyco/trackball_nano/rev1_001 Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
* Merge remote-tracking branch 'origin/master' into developQMK Bot2021-08-131-2/+22
|\
| * use sudo to install modules if needed (#13984)Zach White2021-08-131-2/+22
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-08-101-4/+5
|\|
| * Improve the qmk lint readme check (#13941)Zach White2021-08-101-4/+5
| | | | | | | | | | * improve lint readme check * improve if
* | [CLI] Make `qmk doctor` more lenient about system config (#13804)ruro2021-07-302-6/+12
| |
* | Port new_keyboard.sh to CLI (#13706)Ryan2021-07-301-5/+136
| | | | | | Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-07-301-1/+6
|\|
| * `qmk docs`: Add flag to open in browser (#13788)Ryan2021-07-301-1/+6
| | | | | | | | | | * `qmk docs`: Add flag to open in browser * Add docs
* | Remove references to info.json `width` and `height` in CLI (#13728)Ryan2021-07-292-4/+0
| |
* | CLI/Docs: Fix the format commands' name (#13668)Erovia2021-07-231-1/+1
| | | | | | | | | | | | | | PR #13296 changed the name of the `cformat` and `pyformat` commands to `format-c` and `format-py` respectively. This PR updates the documentation and some parts of the CLI to use the new names. Also add documentation for the new `format-text` subcommand, introduced in the same PR.
* | Move all our CLI file formatters to the format dir (#13296)Zach White2021-07-207-148/+240
| | | | | | | | | | | | | | | | | | * move all our file formatters to the format dir * Apply suggestions from code review Co-authored-by: Erovia <Erovia@users.noreply.github.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* | Merge remote-tracking branch 'origin/master' into developZach White2021-07-141-0/+1
|\| | | | | | | | | Resolved Conflicts: keyboards/checkerboards/nop60/info.json
| * switch to qmk-dotty-dict (#13460)Zach White2021-07-141-0/+1
| |
* | CLI: Add git and venv info to doctor's output (#13405)Erovia2021-07-101-7/+38
| | | | | | | | Most of the checks are saved from zvecr's retired 'up/status' subcommand PR.
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-06-271-0/+1
|\|
| * Doctor: print CLI version (#13356)Ryan2021-06-271-0/+1
| |
* | CLI: Add subcommand to generate version.h (#13151)Ryan2021-06-272-0/+29
| |
* | Optimize our jsonschema by using refs (#13271)Zach White2021-06-241-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * fix some broken info.json files * optimize our jsonschema using refs * fix formatting after vscode broke it * make flake8 happy * cleanup * make our schema validation more compact and flexible
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-06-251-1/+2
|\|
| * add doctor to safe_commands (#13324)Zach White2021-06-241-1/+2
| |
* | Refactor doctor.py into a directory (#13298)Zach White2021-06-226-38/+363
|/