Skip to content

Commit bbe303e

Browse files
thojo0taylorotwell
andauthored
[12.x] add --whisper option to schedule:work command (#56969)
* add --wisper option to schedule:work * Update ScheduleWorkCommand.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 5365db1 commit bbe303e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class ScheduleWorkCommand extends Command
1818
*
1919
* @var string
2020
*/
21-
protected $signature = 'schedule:work {--run-output-file= : The file to direct <info>schedule:run</info> output to}';
21+
protected $signature = 'schedule:work
22+
{--run-output-file= : The file to direct <info>schedule:run</info> output to}
23+
{--whisper : Do not output message indicating that no jobs were ready to run}';
2224

2325
/**
2426
* The console command description.
@@ -43,6 +45,10 @@ public function handle()
4345

4446
$command = Application::formatCommandString('schedule:run');
4547

48+
if ($this->option('whisper')) {
49+
$command .= ' --whisper';
50+
}
51+
4652
if ($this->option('run-output-file')) {
4753
$command .= ' >> '.ProcessUtils::escapeArgument($this->option('run-output-file')).' 2>&1';
4854
}

0 commit comments

Comments
 (0)