Skip to content

Commit 6bf759c

Browse files
authored
Update SchedulerWatcherCommandCheckLastRun.php
laravel 8 has its own "no-ansi"
1 parent d76e1e3 commit 6bf759c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Console/SchedulerWatcherCommandCheckLastRun.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SchedulerWatcherCommandCheckLastRun extends Command {
1414
*
1515
* @var string
1616
*/
17-
protected $signature = 'scheduler-watcher:checklastevent {jobMD5} {--no-ansi}';
17+
protected $signature = 'scheduler-watcher:checklastevent {jobMD5} {--noansi}';
1818

1919
/**
2020
* The console command description.
@@ -51,7 +51,7 @@ public function handle() {
5151
$job_output = job_event_outputs::whereJoboJobeId($last_job_events->jobe_id)->first('jobo_output');
5252
$output = "Last exitcode from job: ".$job->job_name.': ['.$last_job_events->jobe_exitcode.'] - last output: ';
5353
if ($job_output) {
54-
if ($this->option('no-ansi')) {
54+
if ($this->option('noansi')) {
5555
/**
5656
* @see https://stackoverflow.com/a/40731340/1092858
5757
*/
@@ -70,7 +70,7 @@ public function handle() {
7070
* @param int $exitcode
7171
*/
7272
private function echo($str, $type=null, $exitcode=0):void {
73-
if ($this->option('no-ansi')) {
73+
if ($this->option('noansi')) {
7474
echo $str;
7575
} else {
7676
switch ($exitcode) {

0 commit comments

Comments
 (0)