From 5b43786432cbb091d1ea53d39849fb2192ed81c0 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Sun, 12 Jul 2020 18:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../install/UploadCatchModuleCommand.php | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 extend/catcher/command/install/UploadCatchModuleCommand.php diff --git a/extend/catcher/command/install/UploadCatchModuleCommand.php b/extend/catcher/command/install/UploadCatchModuleCommand.php new file mode 100644 index 0000000..aa846d4 --- /dev/null +++ b/extend/catcher/command/install/UploadCatchModuleCommand.php @@ -0,0 +1,63 @@ + + * @copyright By CatchAdmin + * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt + */ +namespace catcher\command\install; + +use catcher\CatchAdmin; +use catcher\exceptions\FailedException; +use catcher\facade\Http; +use catcher\library\Compress; +use think\console\Command; +use think\console\Input; +use think\console\input\Argument; +use think\console\input\Option; +use think\console\Output; +use think\facade\Console; + +class UploadCatchModuleCommand extends Command +{ + protected $module; + + protected $moduleZipPath; + + /** + * @var Compress + */ + protected $compress; + + protected function configure() + { + $this->setName('upload:module') + ->addArgument('module', Argument::REQUIRED, 'module name') + ->setDescription('install catch module'); + } + + protected function execute(Input $input, Output $output) + { + // 打包项目 + // 认证用户 + // 上传 + } + + protected function uploadAddress() + { + + } + + protected function upload() + { + + } + + protected function compressModule() + { + + } +} \ No newline at end of file