This commit is contained in:
2025-09-13 01:22:15 +08:00
parent 155e05fd6d
commit 1a4b8551a0
674 changed files with 146276 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?php
/**
*
* @authorllbjj
* @DateTime2024/3/29 15:12
* @Description
*
*/
namespace Application\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class RunCommand extends BasicCommand
{
protected static string $commandName = 'Run:Server';
protected function configure()
{
$this->setName(self::$commandName);
$this->addOption('sv', null, InputOption::VALUE_REQUIRED, 'Server Name');
$this->addOption('method', null, InputOption::VALUE_REQUIRED, 'Server Method');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->LocalService()->{$input->getOption('sv')}->{$input->getOption('method')}();
return 0;
}
}