mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
35 lines
757 B
PHP
35 lines
757 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
class TmuxUIStop extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'tmux-ui:stop {--k|kill : kill the session}';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Stop the processing of tmux scripts (deprecated - use tmux:stop)';
|
|
|
|
/**
|
|
* Execute the console command
|
|
*/
|
|
public function handle(): int
|
|
{
|
|
$this->warn('⚠️ This command is deprecated. Use "php artisan tmux:stop" instead.');
|
|
|
|
return $this->call('tmux:stop', [
|
|
'--force' => $this->option('kill'),
|
|
]);
|
|
}
|
|
}
|