[cli] Add a graph match testing command to xbusctl
Created originally on Bitbucket by bmasson (Brendan Masson)
The aim of the following proposal is to provide a way to diagnose graph matching issues.
Add a "graph match" command to see which graphs would match a certain envelope.
Example:
We would like to see if an emitter with the role "foo" can send an envelope containing events of type "bar". This command would print the matching graphs with the relevant nodes.
#!
$ xbusctl graph match --type=emitter --roles=foo --events=bar
graph: foobar 1.1.23
foo-emitter-1 -> bar-consumer-2