From 560505bb4af0d58a7b184f3645bf7e01f9b9b50d Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 11 Mar 2023 19:51:20 +0800 Subject: [PATCH] remove plugin command redundant options --- src/ZM/Command/Plugin/PluginInstallCommand.php | 3 --- src/ZM/Command/Plugin/PluginMakeCommand.php | 3 --- src/ZM/Command/Plugin/PluginPackCommand.php | 3 --- 3 files changed, 9 deletions(-) diff --git a/src/ZM/Command/Plugin/PluginInstallCommand.php b/src/ZM/Command/Plugin/PluginInstallCommand.php index bebbdd91..802e38a2 100644 --- a/src/ZM/Command/Plugin/PluginInstallCommand.php +++ b/src/ZM/Command/Plugin/PluginInstallCommand.php @@ -18,9 +18,6 @@ class PluginInstallCommand extends PluginCommand { $this->addArgument('address', InputArgument::REQUIRED, '插件地址'); $this->addOption('github-token', null, InputOption::VALUE_REQUIRED, '提供的 GitHub Token'); - - // 下面是辅助用的,和 server:start 一样 - $this->addOption('config-dir', null, InputOption::VALUE_REQUIRED, '指定其他配置文件目录'); } /** diff --git a/src/ZM/Command/Plugin/PluginMakeCommand.php b/src/ZM/Command/Plugin/PluginMakeCommand.php index 6d24d584..1f33078c 100644 --- a/src/ZM/Command/Plugin/PluginMakeCommand.php +++ b/src/ZM/Command/Plugin/PluginMakeCommand.php @@ -24,9 +24,6 @@ class PluginMakeCommand extends PluginCommand // 下面是 type=psr4 的选项 $this->addOption('namespace', null, InputOption::VALUE_OPTIONAL, '插件命名空间', null); - - // 下面是辅助用的,和 server:start 一样 - $this->addOption('config-dir', null, InputOption::VALUE_REQUIRED, '指定其他配置文件目录'); } /** diff --git a/src/ZM/Command/Plugin/PluginPackCommand.php b/src/ZM/Command/Plugin/PluginPackCommand.php index c2c3a66b..c95496d7 100644 --- a/src/ZM/Command/Plugin/PluginPackCommand.php +++ b/src/ZM/Command/Plugin/PluginPackCommand.php @@ -17,9 +17,6 @@ class PluginPackCommand extends PluginCommand { $this->addArgument('name', InputArgument::REQUIRED, '要打包的插件名称'); $this->addOption('build-dir', 'D', InputOption::VALUE_REQUIRED, '指定输出文件位置', WORKING_DIR . '/build'); - - // 下面是辅助用的,和 server:start 一样 - $this->addOption('config-dir', null, InputOption::VALUE_REQUIRED, '指定其他配置文件目录'); } /**