Posted by msonnabaum on February 16, 2012 at 7:46am
A super basic way of defining tasks. Useful for when you have a bit of work to do that doesn't warrant it's own drush command.
Usage
Create a file called 'Drushfile', then define a task like so:
<?php
/**
* @task
* @desc "This is my task description"
*/
function blah_taskname() {
echo "OMG TASKS\n";
}
?>Now list your tasks:
$ drush tasks-list
blah_taskname : "This is my task description" Now run it:
$ drush tasks blah_taskname
OMG TASKSDownloads
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Downloads: 17
- Last modified: February 16, 2012