Skip to content

Instantly share code, notes, and snippets.

@obad2015
Created April 11, 2013 12:04
Show Gist options
  • Save obad2015/5362850 to your computer and use it in GitHub Desktop.
Save obad2015/5362850 to your computer and use it in GitHub Desktop.
function foo_drush_command() {
$items = array();
$items['make-me-a-sandwich'] = array(
'description' => "Makes a delicious sandwich.",
'arguments' => array(
'filling' => 'The type of the sandwich (turkey, cheese, etc.)',
),
'options' => array(
'spreads' => 'Comma delimited list of spreads (e.g. mayonnaise, mustard)',
),
'examples' => array(
'drush mmas turkey --spreads=ketchup,mustard' => 'Make a terrible-tasting sandwich that is lacking in pickles.',
),
'aliases' => array('mmas'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH, // No bootstrap at all.
);
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment