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

Allow invoke to run from a custom script #11

Closed
thedrow opened this issue Jun 14, 2012 · 1 comment
Closed

Allow invoke to run from a custom script #11

thedrow opened this issue Jun 14, 2012 · 1 comment

Comments

@thedrow
Copy link
Contributor

thedrow commented Jun 14, 2012

Invoke could also be usable for projects that are trying to write their own CLI interfaces. Therefor, it should be possible to call a method that parses the arguments and dispatches them to the right task.
More customization should be allowed in that script.

@bitprophet
Copy link
Member

This is absolutely one of the design goals! :)

With the API as it stands, you can already do this. Check out how invoke/cli.py works. It leverages the (relatively well separated from each other) Parser, Loader and Collection classes. Any of those components can be used independently.

I'm closing this ticket itself as it has no real actionable todo items, but please feel free to open new ones after playing around with the existing class structure, if you have specific ideas for improvement. (These APIs are all rough drafts...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants