Jakub Kicinski [off-list ref] writes:
I had some time on the plane to LPC, so here are improvements
to the --help and --list-attrs handling of YNL CLI which seem
in order given growing use of YNL as a real CLI tool.
v2:
- patch 2: remove unnecessary isatty() check
v1: https://lore.kernel.org/20260109211756.3342477-1-kuba@kernel.org (local)
Jakub Kicinski (7):
tools: ynl: cli: introduce formatting for attr names in --list-attrs
tools: ynl: cli: wrap the doc text if it's long
tools: ynl: cli: improve --help
tools: ynl: cli: add --doc as alias to --list-attrs
tools: ynl: cli: factor out --list-attrs / --doc handling
tools: ynl: cli: extract the event/notify handling in --list-attrs
tools: ynl: cli: print reply in combined format if possible
tools/net/ynl/pyynl/cli.py | 207 ++++++++++++++++++++++++++-----------
1 file changed, 144 insertions(+), 63 deletions(-)
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>