libxkbcommon/tools
Peter Hutterer f434c690cc tools: change xkbcli list to output YAML
We have a lot of keyboard layouts and the current output format is virtually
useless at searching for a specific one to debug any issues with either the
layout list or the output from libxkbregistry.

Let's use YAML instead because that can easily be post-processed to extract the
specific layouts wanted, e.g. to get the list of all layouts:
  xkbcli-list | yq -r ".layouts[].layout"
to get the list of all variants of the "us" layout:
  xkbcli-list | yq -r '.layouts[] | select(.layout == "us") | .variant
and the number of option groups:
  xkbcli-list | yq -r '.option_groups[] | length'

Note that the top-level nodes have been de-capitalized, so where it was "Models"
before it is now "models" and the "Options" node is now "option_groups".

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-04-27 09:53:32 +03:00
..
compile-keymap.c tools/compile-keymap: hide --kccgst comment on public build 2020-07-25 16:37:57 +03:00
how-to-type.c tools: align `xkbcli how-to-type` output ourselves 2020-09-09 10:11:54 +03:00
interactive-evdev.c interactive-evdev: fix missing initialization 2021-03-28 16:11:36 +03:00
interactive-wayland.c interactive-wayland: fallback to ftruncate() if needed 2021-04-14 13:44:57 +03:00
interactive-x11.c tools: consistently return 2 on invalid usage 2020-07-25 11:05:14 +03:00
registry-list.c tools: change xkbcli list to output YAML 2021-04-27 09:53:32 +03:00
tools-common.c meson.build: define PATH_MAX where it's missing 2020-09-01 08:56:56 +10:00
tools-common.h tools: make independent from src/ 2020-07-25 15:59:23 +03:00
xkbcli-compile-keymap.1 tools: convert man pages from man format to mdoc format 2020-08-31 10:02:47 +03:00
xkbcli-how-to-type.1 tools: align `xkbcli how-to-type` output ourselves 2020-09-09 10:11:54 +03:00
xkbcli-interactive-evdev.1 interactive-evdev: switch from epoll(2) to poll(2) 2021-03-28 14:39:03 +03:00
xkbcli-interactive-wayland.1 tools: convert man pages from man format to mdoc format 2020-08-31 10:02:47 +03:00
xkbcli-interactive-x11.1 tools: convert man pages from man format to mdoc format 2020-08-31 10:02:47 +03:00
xkbcli-list.1 tools: convert man pages from man format to mdoc format 2020-08-31 10:02:47 +03:00
xkbcli.1 man: add missing pointer to xkbcli-compile-keymap(1) 2021-03-29 20:59:45 +03:00
xkbcli.c interactive-evdev: switch from epoll(2) to poll(2) 2021-03-28 14:39:03 +03:00