File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Console \Command ;
6
6
use Illuminate \Support \Str ;
7
+ use Log1x \EnvoyerDeploy \Console \Concerns \HighlightsText ;
7
8
use Log1x \EnvoyerDeploy \EnvoyerDeploy ;
8
9
9
10
class DeployListCommand extends Command
10
11
{
12
+ use HighlightsText;
13
+
11
14
/**
12
15
* The name and signature of the console command.
13
16
*
@@ -88,14 +91,4 @@ public function handle(): void
88
91
$ this ->newLine ();
89
92
$ this ->table ($ headers ->toArray (), $ projects ->toArray ());
90
93
}
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
- }
101
94
}
You can’t perform that action at this time.
0 commit comments