Skip to content

Commit

Permalink
Adding delimiters to the output
Browse files Browse the repository at this point in the history
  • Loading branch information
skullhole committed Nov 17, 2016
1 parent 8876b76 commit 3108f5c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ri.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function drush_ri_status($function, $flag) {
function drush_ri_function($function) {
// Preload the files.
ri_updates();

ri_execute_function($function);
}

Expand Down Expand Up @@ -113,6 +113,11 @@ function ri_executed_set($function, $flag = TRUE) {
* @param $function
*/
function ri_execute_function($function) {
// Delimiter.
$delimiter = '##############################';
echo $delimiter, "\n";
echo $function, '()', "\n";

// Execute.
if (function_exists($function)) {
if (!($message = $function())) {
Expand All @@ -128,6 +133,9 @@ function ri_execute_function($function) {

// Message.
drush_log($message, 'status');

// Delimiter.
echo $delimiter, "\n\n";
}

/**
Expand Down

0 comments on commit 3108f5c

Please sign in to comment.