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 TASKS

Project Information

Downloads