Add filter for type of message
Created originally on Bitbucket by Phil9175 (Philippe Granger)
Add a command into xbusctl to be able to filter by message name
I have 3 type of messages:
file_update
file_creation
file_delete
Example:
I want all messages with the name "file_creation"
#!bash
xbusctl ps export --name-of-message file_creation
I want all messages with the name "file_creation" or "file_update" which have been updated in the 2 last minutes
#!bash
xbusctl ps export --name-of-message file_creation file_update --status-changed-since 2m
I want all messages which correspond to the following pattern "file_*" which have been updated in the 2 last minutes
#!bash
xbusctl ps export --name-of-message --regex file_* --status-changed-since 2m