From d9016031482d0ad00084ae4404f5ef7e6fa11061 Mon Sep 17 00:00:00 2001 From: D8D Developer Date: Fri, 20 Mar 2026 10:21:41 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20deploy=20=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E5=8F=82=E6=95=B0=E8=A7=A3=E6=9E=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/deploy.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.ts b/scripts/deploy.ts index b65037c..2693cf8 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -43,10 +43,13 @@ function parseArgs() { return Number(getOption(name, String(defaultValue))); }; + // 判断是否是子命令模式 + const isSubCommand = command === 'delete' || command === 'status'; + return { command, - name: args[1], - image: args[2], + name: isSubCommand ? args[1] : command, + image: isSubCommand ? undefined : args[1], options: { replicas: getOptionNumber('--replicas', 1), port: getOptionNumber('--port', 3000),