Skip to content

Commit

Permalink
Implement Symfony Console, Annotated Commands, Robo pipelines and out…
Browse files Browse the repository at this point in the history
…put formats.
  • Loading branch information
greg-1-anderson committed May 6, 2016
1 parent 1d7380d commit 6c09849
Show file tree
Hide file tree
Showing 49 changed files with 1,858 additions and 394 deletions.
2 changes: 1 addition & 1 deletion commands/core/archive.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function drush_archive_dump($sites_subdirs = '@self') {
}
else {
$sites[$key]['databases'] = array();
drush_log(dt('DB definition not found for !alias', array('!alias' => $key)), LogLevel::NOTICE);
drush_log(dt('DB definition not found for !alias', array('!alias' => $key)), LogLevel::INFO);
}
}

Expand Down
2 changes: 1 addition & 1 deletion commands/core/config.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ function drush_config_get_object($config_name) {
return drush_set_error(dt('Config !name does not exist in !source configuration.', array('!name' => $config_name, '!source' => $source)));
}
if (empty($data)) {
drush_log(dt('Config !name exists but has no data.', array('!name' => $config_name)), LogLevel::NOTICE);
drush_log(dt('Config !name exists but has no data.', array('!name' => $config_name)), LogLevel::INFO);
return;
}
return $data;
Expand Down
2 changes: 1 addition & 1 deletion commands/core/core.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ function drush_core_twig_compile() {
$relative = str_replace(drush_get_context('DRUSH_DRUPAL_ROOT'). '/', '', $file->filename);
// @todo Dynamically disable twig debugging since there is no good info there anyway.
twig_render_template($relative, array('theme_hook_original' => ''));
drush_log(dt('Compiled twig template !path', array('!path' => $relative)), LogLevel::NOTICE);
drush_log(dt('Compiled twig template !path', array('!path' => $relative)), LogLevel::INFO);
}
}
}
Expand Down
173 changes: 0 additions & 173 deletions commands/core/init.drush.inc

This file was deleted.

4 changes: 4 additions & 0 deletions commands/core/notify.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ function notify_drush_help($section) {
function drush_notify_shutdown() {
$cmd = drush_get_command();

if (!isset($cmd['command'])) {
return;
}

// pm-download handles its own notification.
if ($cmd['command'] != 'pm-download' && drush_notify_allowed($cmd['command'])) {
$msg = dt("Command '!command' completed.", array('!command' => $cmd['command']));
Expand Down
2 changes: 1 addition & 1 deletion commands/core/views.d8.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function _views_drush_op($op = '', array $view_names = array()) {
drush_log(dt('View: @view has been @action', $tokens), LogLevel::SUCCESS);
}
else {
drush_log(dt('View: @view is already @action', $tokens), LogLevel::NOTICE);
drush_log(dt('View: @view is already @action', $tokens), LogLevel::INFO);
}
// Remove this view from the viewnames input list.
unset($view_names[$view->id()]);
Expand Down
2 changes: 1 addition & 1 deletion commands/make/make.project.inc
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class DrushMakeProject {
function recurse($path) {
if (!$this->do_recursion || drush_get_option('no-recursion')) {
drush_log(dt("Preventing recursive makefile parsing for !project",
array("!project" => $this->name)), LogLevel::NOTICE);
array("!project" => $this->name)), LogLevel::INFO);
return TRUE;
}
$candidates = array(
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"symfony/yaml": "~2.3|~3.0",
"symfony/var-dumper": "~2.7|~3.0",
"league/container": "~2",
"codegyre/robo": "~1.0.0-beta1",
"consolidation/annotated-command": "~1.0.0-beta1",
"consolidation/output-formatters": "~1.0.0-beta1",
"symfony/console": "2.7.*",
"symfony/event-dispatcher": "2.7.*",
"symfony/config": "~2.2",
"pear/console_table": "~1.3.0"
},
Expand Down

0 comments on commit 6c09849

Please sign in to comment.