This commit is contained in:
Jerry
2023-02-01 16:52:59 +08:00
parent 94a6b926cc
commit 60382a98f6

View File

@@ -28,12 +28,12 @@ class PluginPackCommand extends PluginCommand
protected function handle(): int protected function handle(): int
{ {
try { try {
$outpupt = PluginManager::packPlugin( $output = PluginManager::packPlugin(
plugin_name: $this->input->getArgument('name'), plugin_name: $this->input->getArgument('name'),
build_dir: $this->input->getOption('build-dir'), build_dir: $this->input->getOption('build-dir'),
command_context: $this command_context: $this
); );
$this->info("插件打包完成,输出文件:{$outpupt}"); $this->info("插件打包完成,输出文件:{$output}");
} catch (PluginException $e) { } catch (PluginException $e) {
$this->error($e->getMessage()); $this->error($e->getMessage());
} }