Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cli convert subcommand, from raw KLE to JSON #6898

Merged
merged 19 commits into from
Nov 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update CLI docs with new subcommand name
  • Loading branch information
cfbender committed Oct 8, 2019
commit 2ef5baa4e6e4bdc7110db784a617d43e5481d26d
10 changes: 5 additions & 5 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,30 +85,30 @@ qmk compile <configuratorExport.json>
qmk compile -kb <keyboard_name> -km <keymap_name>
```

## `qmk convert`
## `qmk kle2json`

This command allows you to convert from raw KLE data to qmk configurator json. It accepts either an absolute file path, or a file name in the current directory. By default it will not overwrite `info.json` if it is already present. Use the `-f` or `--force` flag to overwrite.
cfbender marked this conversation as resolved.
Show resolved Hide resolved

**Usage**:

```
qmk convert [filename] [-f]
qmk kle2json [filename] [-f]
```
**Examples**:

```
$ qmk convert ~/github/qmk_firmware/kle.txt
$ qmk kle2json ~/github/qmk_firmware/kle.txt
☒ File /home/cody/github/qmk_firmware/info.json already exists, use -f or --force to overwrite.
...
$ qmk convert ~/github/qmk_firmware/kle.txt -f
$ qmk kle2json ~/github/qmk_firmware/kle.txt -f
Ψ Wrote keymap to /home/cody/github/qmk_firmware/info.json

```

or if cwd is already `~/github/qmk_firmware/`:

```
$ qmk convert kle.txt -f
$ qmk kle2json kle.txt -f
Ψ Wrote keymap to /home/cody/github/qmk_firmware/info.json
```

Expand Down