summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/new
Commit message (Collapse)AuthorAgeFilesLines
* `qmk format-json`: Expose full key path and respect `sort_keys` (#20836)Ryan2023-05-201-1/+1
|
* CLI: Improve keymap folder resolution (#20981)Ryan2023-05-191-4/+4
|
* Validate keyboard name before accepting further input (#19394)jack2022-12-231-5/+5
|
* Align new-keymap with new-keyboard (#19229)Joel Challis2022-12-031-17/+39
|
* Format DD mappings and schemas (#18924)Ryan2022-11-081-1/+1
|
* Allow new-keyboard to use development_board presets (#16785)Joel Challis2022-04-081-5/+15
|
* Relocate CLI git interactions (#16682)Joel Challis2022-03-181-1/+1
|
* Various fixes for new-keyboard (#16358)Joel Challis2022-02-151-1/+9
|
* CLI: Minor additions #12795 (#16276)Erovia2022-02-141-52/+37
|
* Initial pass at data driven new-keyboard subcommand (#12795)Joel Challis2022-02-091-88/+205
| | | | | | | | | * Initial pass at a data driven keyboard subcommand * format * lint * Handle bootloader now its mandatory
* 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>
* Align some quantum sub-directories (#14134)Joel Challis2021-08-241-2/+2
| | | | | | | * Misc folder tidy * Review comments * Remove redundant entry
* Port new_keyboard.sh to CLI (#13706)Ryan2021-07-301-5/+136
| | | Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* 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
* Align our subprocess usage with current best practices. (#12940)Zach White2021-05-191-1/+1
| | | | | | | | | | | | | | | | | * Align our subprocess usage with current best practices. * remove unused import * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * fix the cpp invocation for older python * allow for unprompted installation * make sure qmk new-keyboard works on windows 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
* 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-1/+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
* CLI: update subcommands to use return instead of exit() (#10323)Ryan2020-10-061-3/+3
|
* Move everything to Python 3.6 (#8835)skullydazed2020-04-181-1/+1
|
* 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-11/+15
| | | | | | | | | | | | | | | | | | | | | | * 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>
* Use `keymap` instead of `username` variable for `qmk new_keymap` (#6885)St. John Johnson2019-10-051-4/+4
| | | | | Username is not defined and this causes `qmk new_keymap` to error. This appears to have originated from a partial update in https://github.com/qmk/qmk_firmware/pull/6708/files#diff-d5208bcbc79aa428556a743b6ff41086. This change completes the migration from `username` to `keymap`
* Configuration system for CLI (#6708)skullydazed2019-09-222-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework how bin/qmk handles subcommands * qmk config wip * Code to show all configs * Fully working `qmk config` command * Mark some CLI arguments so they don't pollute the config file * Fleshed out config support, nicer subcommand support * sync with installable cli * pyformat * Add a test for subcommand_modules * Documentation for the `qmk config` command * split config_token on space so qmk config is more predictable * Rework how subcommands are imported * Document `arg_only` * Document deleting from CLI * Document how multiple operations work * Add cli config to the doc index * Add tests for the cli commands * Make running the tests more reliable * Be more selective about building all default keymaps * Update new-keymap to fit the new subcommand style * Add documentation about writing CLI scripts * Document new-keyboard * Update docs/cli_configuration.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/cli_development.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/cli_development.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/cli_development.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Address yan's comments. * Apply suggestions from code review suggestions from @noahfrederick Co-Authored-By: Noah Frederick <code@noahfrederick.com> * Apply suggestions from code review Co-Authored-By: Noah Frederick <code@noahfrederick.com> * Remove pip3 from the test runner
* Created new_keymap.py, python version of new_keymap.sh (#6066)Kenny Hoang2019-09-102-0/+41
* Created python version of new_keymap.sh: new_keymap.py * Updated usage message * Updated new_keymap.py to use python3.5+ syntax & be more similar to new_keyboard.sh * Updated complete message * Updated usage in argparser and removed incorrect usage_message * Reverted the fstrings back to strings that use .format() & updated docstring convention * Added helper to recursively cd .. until at qmk_firmware root directory * Revert "Added helper to recursively cd .. until at qmk_firmware root directory" This reverts commit 61a0ff3b25f91901287bec8d58eb51a1f126e2ad. * Updated new_keymap.py to use printf-style format strings * First draft lib/python/qmk/cli/new/keymap.py with milc * Removed shebang & syspath appending lines * Added optional args & resolved some cr comemnts * Added a docstring and updated strings