Skip to content

Commit

Permalink
CLI: Prompt: Change color of default value to green
Browse files Browse the repository at this point in the history
  • Loading branch information
element-code committed Aug 2, 2021
1 parent 3d207a3 commit a8a13b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/CLI/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ public static function prompt(string $field, $options = null, $validation = null
}

if (is_string($options)) {
$extraOutput = ' [' . static::color($options, 'white') . ']';
$extraOutput = ' [' . static::color($options, 'green') . ']';
$default = $options;
}

if (is_array($options) && $options) {
$opts = $options;
$extraOutputDefault = static::color($opts[0], 'white');
$extraOutputDefault = static::color($opts[0], 'green');

unset($opts[0]);

Expand Down

0 comments on commit a8a13b1

Please sign in to comment.