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

feature: Hooks #12

Open
mattwynne opened this issue Jun 3, 2010 · 1 comment
Open

feature: Hooks #12

mattwynne opened this issue Jun 3, 2010 · 1 comment
Labels

Comments

@mattwynne
Copy link

I was thinking about how to hack in some autotest style feedback for my watchr script. What I'd really like are two hooks I think:

  • before
  • after

I can use the before hook to show a spinner, then the after hook to show red/green status. The after hook could be passed the string result of the handler block maybe? That would be enough to work out a pass / fail in your hook.

WDYT? I appreciate you're trying to keep this thing simple, but it would open up some more possibilities. If you like the idea I can try and hack it together in a fork.

@mynyml
Copy link
Owner

mynyml commented Jul 5, 2010

It should be simple enough to emulate by wrapping actions in a #run method. But I can see how generic hooks could be used by external code, like a plugin, in a much cleaner way. A growl-type plugin would be interesting, I admit. If you're still willing to write the patch, I'd certainly apply it. Thanks for the suggestion.

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

No branches or pull requests

2 participants