summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/list
Commit message (Collapse)AuthorAgeFilesLines
* [CLI] `list-keymaps`/`list-layouts`: Check keyboard passed in (#15204)Ryan2021-11-182-0/+10
| | | | | | | | | | | | | * [CLI] `list-keymaps`/`list-layouts`: Check keyboard passed in * Update lib/python/qmk/cli/list/keymaps.py Co-authored-by: Joel Challis <git@zvecr.com> * Update lib/python/qmk/cli/list/layouts.py Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Joel Challis <git@zvecr.com>
* Allow community layouts to be specified in info.json (#14682)Zach White2021-10-041-0/+18
| | | | | * move the community layout detection to python * fixup tests
* Ensure that safe_commands always run (#13199)Zach White2021-06-141-2/+0
| | | | | * ensure that safe_commands always run * import the config subcommand in bin/qmk
* Add support for tab completion (#12411)Zach White2021-04-141-2/+2
| | | | | | | * Add support for tab completion * make flake8 happy * Add documentation
* Add support for qmk_configurator style aliases (#11954)Zach White2021-03-241-6/+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
* Generate api data on each push (#10609)Zach White2020-10-251-17/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add new qmk generate-api command, to generate a complete set of API data. * Generate api data and push it to the keyboard repo * fix typo * Apply suggestions from code review Co-authored-by: Joel Challis <git@zvecr.com> * fixup api workflow * remove file-changes-action * use a more mainstream github action * fix yaml error * Apply suggestions from code review Co-authored-by: Erovia <Erovia@users.noreply.github.com> * more uniform date handling * make flake8 happy * Update lib/python/qmk/decorators.py Co-authored-by: Erovia <Erovia@users.noreply.github.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* CLI: update subcommands to use return instead of exit() (#10323)Ryan2020-10-061-1/+1
|
* [CLI] Add a subcommand for getting information about a keyboard (#8666)Zach White2020-05-261-11/+7
| | | | | You can now use `qmk info` to get information about keyboards and keymaps. Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* Add decorators for determining keyboard and keymap based on current ↵skullydazed2020-03-131-0/+3
| | | | | | | | | | | | | | | | | | | 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-0/+1
| | | | | | | | | | | | | | | | | | | | | | * 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>
* Code cleanup, use pathlib, use pytest keyboardErovia2020-02-151-7/+3
| | | | | | | | Clean up checks and logics that are unnecessary due to MILC updates. Use pathlib instead of os.path for readability. Use the 'pytest' keyboard for the tests. Add community layout for 'handwired/onekey/pytest' so we can test community layouts.
* Fix commandline parsing and flake8 findings, rebaseErovia2020-02-151-1/+4
| | | | | Fixed commandline and config parsing. Thx @xplusplus. Rebased on master and fixed merge conflicts.
* Drop bs4 dependency, update docs, minor improvementsErovia2020-02-151-4/+7
|
* Another major refactoring, add documentationErovia2020-02-151-76/+8
| | | | | | Move all useful functions to the qmk module and use the cli subcommand as a wrapper around it. Add both inline comments and documentation.
* Fix output formatErovia2020-02-151-1/+1
|
* Try to figure out revision, drop -rv/--revision argumentErovia2020-02-151-32/+34
|
* Fix help message.Erovia2020-02-151-1/+1
|
* Get all buildable keymaps for each revisionErovia2020-02-151-27/+32
| | | | | | | The command now return all keymaps that's buildable for a keyboard/revision. If the base directory of a keyboard does not contain a 'rules.mk' file, nothing is returned. If the base directory contains a 'keymaps' directory, those keycaps will be returned for every revision.
* Major update to work better with revisionsErovia2020-02-151-24/+21
| | | | Find the community keymaps supported by each revision.
* CLI: add support for list_keymapsErovia2020-02-152-0/+85
| | | | List all the available keymaps for a given keyboard
* Add flake8 to our test suite and fix all errors (#7379)skullydazed2019-11-201-13/+13
| | | | | | * Add flake8 to our test suite and fix all errors * Add some documentation
* Small CLI cleanupsskullY2019-11-121-0/+1
| | | | | | | * yapf changes * Fix the cformat test * Make the normpath test work when run from / * `qmk config`: Mark `--read-only` as arg_only
* [CLI] Add `qmk list_keyboards` (#6927)Dan McClain2019-10-072-0/+27
`list_keyboards` replicates the `make list-keyboards` by globbing for all paths that include `rules.mk` and then removing the paths that include `keymaps`. This basis of this cli command could be reused in the future as a util, but is not done so here since this would be the only place that would use it currently Resolves #6911