-
-
Notifications
You must be signed in to change notification settings - Fork 40.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI] Add a subcommand for getting information about a keyboard #8666
Conversation
# Supported processor types | ||
ARM_PROCESSORS = 'cortex-m0', 'cortex-m0plus', 'cortex-m3', 'cortex-m4', 'MKL26Z64', 'MK20DX128', 'MK20DX256', 'STM32F042', 'STM32F072', 'STM32F103', 'STM32F303' | ||
AVR_PROCESSORS = 'at90usb1286', 'at90usb646', 'atmega16u2', 'atmega328p', 'atmega32a', 'atmega32u2', 'atmega32u4', None | ||
ALL_PROCESSORS = ARM_PROCESSORS + AVR_PROCESSORS | ||
VUSB_PROCESSORS = 'atmega328p', 'atmega32a' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note to myself, that this well need to merged somehow with
https://github.com/noroadsleft/qmk_firmware/blob/feature/arm_template/lib/python/qmk/constants.py
CI failure is unrelated, same error occurs on master for |
This should be ready to go now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to be thorough, but I'm sure I've missed a few things here and there given the size of this PR.
Overall, very handy feature.
Note: I think this subcommand would benefit from #8817, in order to be able to provide similar output for C keymaps, as it does now for JSON keymaps.
All feedback should have been addressed and I've rebased on master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe these are the last ones.
Fixed the broken list-keymap
and some other things.
The checks should be all green with the suggestions.
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
[CLI] Add a subcommand for getting information about a keyboard
* upstream/master: (800 commits) Fix crkbd slave matrix print to require debug_matrix (qmk#9217) Keyboards/zsa updates (qmk#9214) Community layout support for KBDpad Mk.I (qmk#9220) Fix projectkb/alice LED indicator (qmk#9226) RSTHD keymap for Minidox (qmk#9178) Fix running qmk info without any arguments (qmk#9218) [Keymap] Update yttyx Planck keymap (qmk#9191) Documentation for keymap_extras (qmk#9194) Adding TGR Tris/Tris CE Numpad (qmk#9139) ISSI driver compile error fix (qmk#9169) Fix the path for generated keymaps (qmk#9213) Fix compiling json files (qmk#9210) [CLI] Add a subcommand for getting information about a keyboard (qmk#8666) [Keymap] Contributing Home-Row-Centric-Mousekey Layout (qmk#9195) CLI: fix `json2c` subcommand and add/fix tests (qmk#9206) [Keymap] Ported ok60 to via (qmk#9179) [Docs] Japanese translation of docs/feature_pointing_device.md (qmk#8993) [Keymap] Niu keymap and README update (qmk#9190) [Keyboard] Add Key 65 by Fox Lab (qmk#9116) [Keymap] update helix/rev2:yshrsmz keymap (qmk#9047) ...
…8666) You can now use `qmk info` to get information about keyboards and keymaps. Co-authored-by: Erovia <Erovia@users.noreply.github.com>
…8666) You can now use `qmk info` to get information about keyboards and keymaps. Co-authored-by: Erovia <Erovia@users.noreply.github.com>
…8666) You can now use `qmk info` to get information about keyboards and keymaps. Co-authored-by: Erovia <Erovia@users.noreply.github.com>
…8666) You can now use `qmk info` to get information about keyboards and keymaps. Co-authored-by: Erovia <Erovia@users.noreply.github.com>
…8666) You can now use `qmk info` to get information about keyboards and keymaps. Co-authored-by: Erovia <Erovia@users.noreply.github.com>
This adds a new command,
qmk info
, that parses info.json and displays some information about the keyboard. You can specify the keyboard with -kb, by settinguser.keyboard
, or with theautomagic_keyboard
functionality.You can also render the layouts in various ways:
-l
Show all the layouts with info.json labels-m
Show all the layouts with matrix positions-km <keymap>
Show the layers for a JSON keymapTypes of Changes
Checklist