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

Transform context #24

Closed
evs-chris opened this issue Dec 4, 2014 · 1 comment
Closed

Transform context #24

evs-chris opened this issue Dec 4, 2014 · 1 comment

Comments

@evs-chris
Copy link
Contributor

It might be handy to have transforms called with a context that gives them automagic access to the gobble instance that is calling them (in my case for env()). Also handy would be a way to log what's going on in a gobble-friendly in the midst of a long-ish-running transform. Perhaps something like this.log()? console.log is not very pretty jumping in between all the pacman dots :-)

@Rich-Harris
Copy link
Contributor

Yes, this makes sense - though I reckon it should be readonly (i.e. this.env rather than this.gobble.env(), which by definition would allow this.gobble.env('mwhahah')). I like the this.log() idea as well

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

No branches or pull requests

2 participants