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

Downloads

Version Downloads Date Links
7.x-1.x-dev tar.gz (7.63 KB) | zip (7.84 KB) 2012-Feb-18 Notes

Project Information


Maintainers for drush_tasks

  • msonnabaum - 2 commits
    last: 13 weeks ago, first: 14 weeks ago

Issues for drush_tasks

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here