-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
task(name, shellCommand) & alias(name, alias) #50
Comments
I think it's bad decision, because may be unfamiliar to users. And this is also make incompatible API changes. |
That's true, but we could handle this by checking if the shellCommand is the name of a Task, if it is the alias function will be called. I think it will be extremely rare a taskname matches something you wish to execute on the server. |
I do not think this is good solution. |
I don't see big difference between what is already exists task('deploy:cache:warmup','php %releasepath%/app/console assetic:dump --env=%env% --no-debug')
task('deploy:cache:warmup',function(){ run('php %releasepath%/app/console assetic:dump --env=%env% --no-debug')); }); |
Closing this issue as non necessary. |
Possible to run simple shell commands directly without creating callback.
This would automatically provide some default behaviour for a task, and could replace many simple tasks.
The current functionality for ReferenceTask could be removed to an alias function
The text was updated successfully, but these errors were encountered: