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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task Groups #7

Open
CHH opened this issue Feb 16, 2012 · 1 comment
Open

Task Groups #7

CHH opened this issue Feb 16, 2012 · 1 comment

Comments

@CHH
Copy link
Owner

CHH commented Feb 16, 2012

馃憤 this Feature to vote for it.

I'm not entirely sold on this, because you can already namespace tasks simply by putting a ":" in the name,
for example assets:dump.

Syntax could look like this:

group("assets", function($g) {
    $g->task("dump", function() {
    # ...
    });
});

or like this:

task("foo", function() {});

group("assets", function() {
    # some group prerequisite
    task('foo', function() {});

    # Tasks are first looked up in the current group, so the group's "foo" task is invoked:
    task("dump", array('foo'), function() {
    # ...
    });
});
@howtoyoudo
Copy link

Yess thank

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