<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qmk_firmware.git/lib/python/qmk/cli/new, branch master</title>
<subtitle>forked from https://github.com/qmk/qmk_firmware</subtitle>
<id>https://git.tsegers.com/qmk_firmware.git/atom?h=master</id>
<link rel='self' href='https://git.tsegers.com/qmk_firmware.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/'/>
<updated>2020-10-06T23:46:10Z</updated>
<entry>
<title>CLI: update subcommands to use return instead of exit() (#10323)</title>
<updated>2020-10-06T23:46:10Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-10-06T23:46:10Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=2c9ffd47391b8dec98db94bef9b2f5c14a57cf94'/>
<id>urn:sha1:2c9ffd47391b8dec98db94bef9b2f5c14a57cf94</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move everything to Python 3.6 (#8835)</title>
<updated>2020-04-18T20:00:56Z</updated>
<author>
<name>skullydazed</name>
<email>skullydazed@users.noreply.github.com</email>
</author>
<published>2020-04-18T20:00:56Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=66d94dc22af4fccae2af073c512662ce7eba7d98'/>
<id>urn:sha1:66d94dc22af4fccae2af073c512662ce7eba7d98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add decorators for determining keyboard and keymap based on current directory (#8191)</title>
<updated>2020-03-13T22:47:04Z</updated>
<author>
<name>skullydazed</name>
<email>skullydazed@users.noreply.github.com</email>
</author>
<published>2020-03-13T22:47:04Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=f81b0e35a6a25a9a6e633dc65a4900bed2458cfb'/>
<id>urn:sha1:f81b0e35a6a25a9a6e633dc65a4900bed2458cfb</id>
<content type='text'>
* 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.</content>
</entry>
<entry>
<title>Use pathlib everywhere we can (#7872)</title>
<updated>2020-02-17T19:42:11Z</updated>
<author>
<name>skullydazed</name>
<email>skullydazed@users.noreply.github.com</email>
</author>
<published>2020-02-17T19:42:11Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=c66930445f7d5941eb847568288046d51f853786'/>
<id>urn:sha1:c66930445f7d5941eb847568288046d51f853786</id>
<content type='text'>
* Use pathlib everywhere we can

* Update lib/python/qmk/path.py

Co-Authored-By: Erovia &lt;Erovia@users.noreply.github.com&gt;

* Update lib/python/qmk/path.py

Co-Authored-By: Erovia &lt;Erovia@users.noreply.github.com&gt;

* 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 &lt;Erovia@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>Use `keymap` instead of `username` variable for `qmk new_keymap` (#6885)</title>
<updated>2019-10-06T06:41:15Z</updated>
<author>
<name>St. John Johnson</name>
<email>st.john.johnson@gmail.com</email>
</author>
<published>2019-10-06T06:41:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=78f01eef2e4586f59b56703d0a4f1a57a1af40a1'/>
<id>urn:sha1:78f01eef2e4586f59b56703d0a4f1a57a1af40a1</id>
<content type='text'>
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`</content>
</entry>
<entry>
<title>Configuration system for CLI (#6708)</title>
<updated>2019-09-22T20:25:33Z</updated>
<author>
<name>skullydazed</name>
<email>skullydazed@users.noreply.github.com</email>
</author>
<published>2019-09-22T20:25:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=d569f0877155efc752994f8a21f5cf001f9d6ae6'/>
<id>urn:sha1:d569f0877155efc752994f8a21f5cf001f9d6ae6</id>
<content type='text'>
* 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 &lt;18669334+noroadsleft@users.noreply.github.com&gt;

* Update docs/cli_development.md

Co-Authored-By: noroadsleft &lt;18669334+noroadsleft@users.noreply.github.com&gt;

* Update docs/cli_development.md

Co-Authored-By: noroadsleft &lt;18669334+noroadsleft@users.noreply.github.com&gt;

* Update docs/cli_development.md

Co-Authored-By: noroadsleft &lt;18669334+noroadsleft@users.noreply.github.com&gt;

* Address yan's comments.

* Apply suggestions from code review

suggestions from @noahfrederick

Co-Authored-By: Noah Frederick &lt;code@noahfrederick.com&gt;

* Apply suggestions from code review

Co-Authored-By: Noah Frederick &lt;code@noahfrederick.com&gt;

* Remove pip3 from the test runner
</content>
</entry>
<entry>
<title>Created new_keymap.py, python version of new_keymap.sh (#6066)</title>
<updated>2019-09-10T12:14:25Z</updated>
<author>
<name>Kenny Hoang</name>
<email>kenny.hoang87@gmail.com</email>
</author>
<published>2019-09-10T12:14:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=595232ec989499d0ee0b8db0b55f6e8ca418c786'/>
<id>urn:sha1:595232ec989499d0ee0b8db0b55f6e8ca418c786</id>
<content type='text'>
* Created python version of new_keymap.sh: new_keymap.py

* Updated usage message

* Updated new_keymap.py to use python3.5+ syntax &amp; 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() &amp; 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 &amp; syspath appending lines

* Added optional args &amp; resolved some cr comemnts

* Added a docstring and updated strings
</content>
</entry>
</feed>
