Auto-add related files

This commit is contained in:
Dan Jones 2022-09-07 22:49:21 -05:00
commit fef167862d
3 changed files with 49 additions and 2 deletions

View file

@ -20,12 +20,12 @@ class GetShow extends Command
protected $description = 'Queue a show to re-encode or download';
public function handle(): int
public function handle(ProcessInput $proc): int
{
$this->line('Options: ' . json_encode($this->options()), verbosity: OutputInterface::VERBOSITY_DEBUG);
$input = $this->getInput();
$this->line('Input: ' . json_encode($input), verbosity: OutputInterface::VERBOSITY_DEBUG);
$job = app()->make(ProcessInput::class)->getJob($input);
$job = $proc->getJob($input);
$this->line('Job: ' . json_encode($job), verbosity: OutputInterface::VERBOSITY_DEBUG);
return static::SUCCESS;