Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement routing system #1

Open
julien-vidal opened this issue Nov 17, 2015 · 0 comments
Open

Implement routing system #1

julien-vidal opened this issue Nov 17, 2015 · 0 comments

Comments

@julien-vidal
Copy link
Collaborator

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

@Boulangerie Boulangerie locked and limited conversation to collaborators Nov 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant