mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
36 lines
670 B
PHP
36 lines
670 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Models\Predb;
|
|
use Illuminate\Console\Command;
|
|
|
|
class PredbCheck extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'predb:check {limit?}';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Check PreDB releases for matching';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function handle(): int
|
|
{
|
|
$limit = $this->argument('limit');
|
|
|
|
Predb::checkPre(is_numeric($limit) ? (int) $limit : false);
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|