diff options
| author | Ryan | 2023-05-20 14:15:05 +0200 |
|---|---|---|
| committer | GitHub | 2023-05-20 14:15:05 +0200 |
| commit | 6d90fa2300b463f5cc6920022a445d5ed217124c (patch) | |
| tree | 2b0ae6329af789e81ba5d7313b752e5e828493e0 /lib/python/qmk/cli/info.py | |
| parent | 102c42b14bc79a178d16ae5217d739490a312ea4 (diff) | |
`qmk format-json`: Expose full key path and respect `sort_keys` (#20836)
Diffstat (limited to 'lib/python/qmk/cli/info.py')
| -rwxr-xr-x | lib/python/qmk/cli/info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/info.py b/lib/python/qmk/cli/info.py index 839139346c..cfb73ce1fd 100755 --- a/lib/python/qmk/cli/info.py +++ b/lib/python/qmk/cli/info.py @@ -200,7 +200,7 @@ def info(cli): # Output in the requested format if cli.args.format == 'json': - print(json.dumps(kb_info_json, cls=InfoJSONEncoder)) + print(json.dumps(kb_info_json, cls=InfoJSONEncoder, sort_keys=True)) return True elif cli.args.format == 'text': print_dotted_output(kb_info_json) |