function yaml_content_drush_command in YAML Content 8
Same name and namespace in other branches
- 8.2 yaml_content.drush.inc \yaml_content_drush_command()
Implements hook_drush_command().
File
- ./
yaml_content.drush.inc, line 13 - Drush commands for the yaml_content module.
Code
function yaml_content_drush_command() {
$items = [];
$items['yaml-content-import'] = [
'description' => dt('Import yaml content.'),
'aliases' => [
'yci',
],
'arguments' => [
'directory' => dt('The directory path where content files may be found.'),
'file' => dt('(Optional) The name of a content file to be imported.'),
],
'options' => [
'create-new' => dt('Set this to create content even if it is already in the system.'),
],
];
$items['yaml-content-import-module'] = [
'description' => dt('Import yaml content from a module.'),
'aliases' => [
'ycim',
],
'arguments' => [
'module' => dt('The machine name of a module to be searched for content.'),
'file' => dt('(Optional) The name of a content file to be imported.'),
],
'options' => [
'create-new' => dt('Set this to create content even if it is already in the system.'),
],
];
$items['yaml-content-import-profile'] = [
'description' => dt('Import yaml content from a profile.'),
'aliases' => [
'ycip',
],
'arguments' => [
'profile' => dt('The machine name of a profile to be searched for content.'),
'file' => dt('(Optional) The name of a content file to be imported.'),
],
'options' => [
'create-new' => dt('Set this to create content even if it is already in the system.'),
],
];
return $items;
}