You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise there's no easy way to get the required information sometimes, as far as I can see. Block params are not used anyway, and passing it like this will make it available in $_.
I needed it when I wanted to use a junction as a task name (e.g. task ‘test’ | ‘t’, { … }), but still be able to see which one was used exactly. Sure, I can dive into @*ARGS but that's less than awesome.
As mentioned in issue #7, this can be useful sometimes. This change
should be backward compatible for most users, unless someone
explicitly restricted the signature (e.g. -> {…} instead of just {…}).
By the way, the default .gist of Sake-Task seems to be good enough.
Otherwise there's no easy way to get the required information sometimes, as far as I can see. Block params are not used anyway, and passing it like this will make it available in
$_
.I needed it when I wanted to use a junction as a task name (e.g.
task ‘test’ | ‘t’, { … }
), but still be able to see which one was used exactly. Sure, I can dive into@*ARGS
but that's less than awesome.From the top of my head:
The text was updated successfully, but these errors were encountered: