varlink / libvarlink

C implementation of the Varlink protocol and command line tool
Apache License 2.0
111 stars 15 forks source link

Allow lsiting service with varlink tool #3

Closed fabiand closed 6 years ago

fabiand commented 6 years ago

varlink <tab><tab> allows identifying local services, but for convenience (and discoverability) varlink ls or alike would be nice.

bl33pbl0p commented 6 years ago

It seems to use the resolver for this purpose, hence you could easily get this information by doing: $ varlink call org.varlink.resolver.GetInfo | jq '.interfaces[]'.

fabiand commented 6 years ago

I'm probably just aslking for a shorthand for this :)

kaysievers commented 6 years ago

Hmm, maybe we could make "$ varlink info" (without an address given) print all interfaces the resolver knows?

fabiand commented 6 years ago

Would work for me.

kaysievers commented 6 years ago

$ varlink resolve prints the list of interfaces now: https://github.com/varlink/libvarlink/commit/58e82a5dbbd7f4c9bfcdd4aab3d0919561948317