Enable comm:* commands to be run interactively
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m10s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m52s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-10-19 13:38:55 +11:00
parent 03c6cadbf9
commit 4bbb82690c
2 changed files with 10 additions and 6 deletions

View File

@ -16,7 +16,9 @@ class CommBinkpSend extends Command
*
* @var string
*/
protected $signature = 'comm:binkp:send {ftn : FTN to Send to}';
protected $signature = 'comm:binkp:send'
.'{--N|now : Dont queue}'
.'{ftn : FTN to Send to}';
/**
* The console command description.
@ -32,7 +34,7 @@ class CommBinkpSend extends Command
*
* @throws \Exception
*/
public function handle(): void
public function handle()
{
$ao = Address::findFTN($this->argument('ftn'));
if (! $ao)
@ -42,6 +44,6 @@ class CommBinkpSend extends Command
$mo = Mailer::where('name',self::ID)->singleOrFail();
Job::dispatch($ao,$mo);
return ($this->option('now')) ? Job::dispatchSync($ao,$mo) : Job::dispatch($ao,$mo);
}
}

View File

@ -16,7 +16,9 @@ class CommEMSISend extends Command
*
* @var string
*/
protected $signature = 'comm:emsi:send {ftn : FTN to Send to}';
protected $signature = 'comm:emsi:send'
.'{--N|now : Dont queue}'
.'{ftn : FTN to Send to}';
/**
* The console command description.
@ -32,7 +34,7 @@ class CommEMSISend extends Command
*
* @throws \Exception
*/
public function handle(): void
public function handle()
{
$ao = Address::findFTN($this->argument('ftn'));
if (! $ao)
@ -42,6 +44,6 @@ class CommEMSISend extends Command
$mo = Mailer::where('name',self::ID)->singleOrFail();
Job::dispatch($ao,$mo);
return ($this->option('now')) ? Job::dispatchSync($ao,$mo) : Job::dispatch($ao,$mo);
}
}