Skip to content

Commit a2cd641

Browse files
committed
🎨 Use the HighlightsText concern
1 parent 35bd409 commit a2cd641

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

‎src/Console/DeployListCommand.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
use Illuminate\Console\Command;
66
use Illuminate\Support\Str;
7+
use Log1x\EnvoyerDeploy\Console\Concerns\HighlightsText;
78
use Log1x\EnvoyerDeploy\EnvoyerDeploy;
89

910
class DeployListCommand extends Command
1011
{
12+
use HighlightsText;
13+
1114
/**
1215
* The name and signature of the console command.
1316
*
@@ -88,14 +91,4 @@ public function handle(): void
8891
$this->newLine();
8992
$this->table($headers->toArray(), $projects->toArray());
9093
}
91-
92-
/**
93-
* Bold the specified string in the given value.
94-
*
95-
* @return string
96-
*/
97-
protected function highlight(string $string, string $value)
98-
{
99-
return preg_replace('/'.preg_quote($string).'/i', '<fg=blue;options=bold>$0</>', $value);
100-
}
10194
}

0 commit comments

Comments
 (0)