Add cli convert subcommand, from raw KLE to JSON (#6898)
authorCody Bender <50554676+cfbender@users.noreply.github.com>
Wed, 13 Nov 2019 04:55:41 +0000 (21:55 -0700)
committerskullydazed <skullydazed@users.noreply.github.com>
Wed, 13 Nov 2019 04:55:41 +0000 (20:55 -0800)
commit7329c2d02d38f40a23d38f789de34057fd2acd42
treebb4e0640164b71d60714b964a72025517c2ade61
parent00fb1bd1f0550645997b61870d7d092494265a60
Add cli convert subcommand, from raw KLE to JSON (#6898)

* Add initial pass at KLE convert

* Add cli log on convert

* Move kle2xy, add absolute filepath arg support

* Add overwrite flag, and context sensitive conversion

* Update docs/cli.md

* Fix converter.py typo

* Add convert unit test

* Rename to kle2qmk

* Rename subcommand

* Rename subcommand to kle2json

* Change tests to cover rename

* Rename in __init__.py

* Update CLI docs with new subcommand name

* Fix from suggestions in PR #6898

* Help with cases of case sensitivity

* Update cli.md

* Use angle brackets to indicate required option

* Make the output text more accurate
docs/cli.md
lib/python/kle2xy.py [new file with mode: 0644]
lib/python/qmk/cli/__init__.py
lib/python/qmk/cli/kle2json.py [new file with mode: 0755]
lib/python/qmk/converter.py [new file with mode: 0644]
lib/python/qmk/tests/kle.txt [new file with mode: 0644]
lib/python/qmk/tests/test_cli_commands.py
requirements.txt