Skip to content

Commit

Permalink
Issue #218: Pretty terminal font colors for drush cset
Browse files Browse the repository at this point in the history
Fixes #218
  • Loading branch information
klonos authored Apr 10, 2020
1 parent bda81f1 commit 7c1cd76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commands/config/config_helpers.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,14 @@ function backdrop_config_set() {
catch (Exception $e) {
drush_print_r("There was a problem setting the $setting setting: $e");
}
// Pretty terminal font colors for the printed variables.
$print_file = "\033[96m" . $file . ".json" . "\033[0m";
$print_setting = "\033[96m" . $setting . "\033[0m";
$print_value = "\033[96m" . $value . "\033[0m";
drush_print_r(
dt(
"\n\t\033[32mSuccess\033[0m
The $setting has been set to $value in the $file.json file"
The $print_setting setting has been set to $print_value in the $print_file file."
)
);
}
Expand Down

0 comments on commit 7c1cd76

Please sign in to comment.