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
This commit is contained in:
parent
00fb1bd1f0
commit
7329c2d02d
8 changed files with 298 additions and 0 deletions
|
@ -19,6 +19,8 @@ def test_config():
|
|||
assert result.returncode == 0
|
||||
assert 'general.color' in result.stdout
|
||||
|
||||
def test_kle2json():
|
||||
assert check_subcommand('kle2json', 'kle.txt', '-f').returncode == 0
|
||||
|
||||
def test_doctor():
|
||||
result = check_subcommand('doctor')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue