Add "message" filter to dequeue command

This commit is contained in:
ilumos 2017-09-07 22:21:14 +01:00
parent cce753e6c6
commit f5de680534

View file

@ -15,7 +15,8 @@ class Dequeue extends Command
protected $signature = 'steam:dequeue
{--app_id=}
{--platform=}
{--status=}';
{--status=}
{--message=}';
/**
* The console command description.
*
@ -68,6 +69,10 @@ class Dequeue extends Command
$query->where('status', $this->option('status'));
}
if ($this->option('message')) {
$query->where('message', 'like', '%'.$this->option('message').'%');
}
// If no options were specified, ask for confirmation
if (!array_filter($this->options()) && !$this->confirm('Are you sure you want to clear the download queue?')) {
die();