varlinkctl: add new list-methods verb
authorLennart Poettering <lennart@poettering.net>
Fri, 24 May 2024 14:34:12 +0000 (16:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Jun 2024 07:37:15 +0000 (09:37 +0200)
commit16cfe84c2495c1d9e753e2b8e21b69bea21ebaf4
treeae88d7969029d98e6c00586310b1149347ae4ad3
parent2475b0e81a38689b647168680a9521488388fd4c
varlinkctl: add new list-methods verb

For putting together "varlinkctl call" command lines it's useful to
quickly enumerate all methods implemented by a service. Hence, let's add
a new "list-methods" which uses the introspection data of a service to
quickly list methods.

This is implemented as a special flavour of the "introspect" logic,
and just suppresses all output except for the method names.
man/varlinkctl.xml
src/varlinkctl/varlinkctl.c