Hi, I got an idea about the reporters which I'd like to share and maybe implement if we agree on it. So here it comes:
As you know our reporters has pretty limited options how to communicate with users - they can only return some text to display. But what if the plugin would like to ask user to do some action - like use other plugin or run some command? So we can change the type of the return value to something better like:
struct report_result { type: {MESSAGE,ACTION,PLUGIN} content: - depends on type, but its always a string: -> for MESSAGE it would be the message -> for ACTION it would be a command -> for PLUGIN it would be the plugin name to use which might be then represented as a button in gui }
or maybe a list of these structs, so we can return a message and action or more actions ...
Ideas?
J.