Boulangerie/alftray

Implement routing system

Opened this issue · 0 comments

As discussed with @yannickglt, main problem about Alfred 2 workflows is on a specific input have to get the good process to output. We aren't just talking about script filter here but in general.

So a solution to that problem is to have a router which bind controller action like we could have in any web framework.

Example of a call to a workflow (scriptFilter part):
slack @yga Hey

First word is always your workflow keyword, here slack
Well the others part are the core of the workflow, the query part !
Depending of how many part and which they are, you have to do something different.

A possible solution : implement a router
'@' --> ListUser Action
'@:name' --> ListUser Action (name could be use as variable for filtering)
'@:name/*' --> SendMessage Action

Draft to continue