mirror of
https://github.com/zeropingheroes/lancache-autofill
synced 2024-11-10 02:14:12 +00:00
Add "message" filter to dequeue command
This commit is contained in:
parent
cce753e6c6
commit
f5de680534
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue