This commit is contained in:
crazywhalecc
2024-10-02 20:31:16 +08:00
committed by Jerry Ma
parent 2d9f879994
commit ef1a9646e4
72 changed files with 107 additions and 234 deletions

View File

@@ -83,7 +83,7 @@ class BuildCommand extends Command
$separator = '\\' . DIRECTORY_SEPARATOR;
// 只打包 bin / config / resources / src / vendor 目录以及 composer.json / composer.lock / entry.php
$files = array_filter($files, function ($file) use ($separator) {
return preg_match('/^(bin|config|resources|src|vendor)' . $separator . '|^(composer\\.json|README\\.md)$/', $file);
return preg_match('/^(bin|config|resources|src|vendor)' . $separator . '|^(composer\.json|README\.md)$/', $file);
});
sort($files);

View File

@@ -26,7 +26,6 @@ abstract class Command extends \Symfony\Component\Console\Command\Command implem
protected OutputInterface $output;
/**
* {@inheritdoc}
* @internal 不建议覆写此方法,建议使用 {@see handle()} 方法
*/
protected function execute(InputInterface $input, OutputInterface $output): int

View File

@@ -18,9 +18,6 @@ class TextGenerateCommand extends Command
$this->setDescription('生成一些框架本身的文本(内部' . PHP_EOL . '当前包含class-alias-mdupdate-log-md');
}
/**
* {@inheritDoc}
*/
protected function handle(): int
{
return match ($this->input->getArgument('name')) {

View File

@@ -20,9 +20,6 @@ class PluginInstallCommand extends PluginCommand
$this->addOption('github-token', null, InputOption::VALUE_REQUIRED, '提供的 GitHub Token');
}
/**
* {@inheritDoc}
*/
protected function handle(): int
{
$addr = $this->input->getArgument('address');

View File

@@ -27,7 +27,6 @@ class PluginMakeCommand extends PluginCommand
}
/**
* {@inheritDoc}
* @throws FileSystemException
*/
protected function handle(): int

View File

@@ -19,9 +19,6 @@ class PluginPackCommand extends PluginCommand
$this->addOption('build-dir', 'D', InputOption::VALUE_REQUIRED, '指定输出文件位置', WORKING_DIR . '/build');
}
/**
* {@inheritDoc}
*/
protected function handle(): int
{
try {

View File

@@ -17,9 +17,6 @@ class PluginRemoveCommand extends PluginCommand
$this->addArgument('name', InputArgument::REQUIRED, '插件名称');
}
/**
* {@inheritDoc}
*/
protected function handle(): int
{
$plugin_name = $this->input->getArgument('name');