drush_tasks

Component ID

1442056

Component name

drush_tasks

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

462

Component created

Component changed

Component body

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:


/**
 * @task
 * @desc "This is my task description"
 */
function blah_taskname() {
  echo "OMG TASKS
";
}

Now list your tasks:

$ drush tasks-list
 blah_taskname   :  "This is my task description" 

Now run it:

$ drush tasks blah_taskname
OMG TASKS