From 0e2bb44bc1988dc49b80e453acd6422767ff433b Mon Sep 17 00:00:00 2001 From: aooiuu Date: Tue, 20 Aug 2024 20:49:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(cli):=20=E9=85=8D=E7=BD=AE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/src/command/check.ts | 2 +- packages/cli/src/command/web.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/command/check.ts b/packages/cli/src/command/check.ts index 7bed4f86..06394cb3 100644 --- a/packages/cli/src/command/check.ts +++ b/packages/cli/src/command/check.ts @@ -10,8 +10,8 @@ import { timeoutWith } from '../utils/promise'; // TODO: 搜索校验 发现校验 export default (program: Command) => { program - .description('规则校验') .command('check') + .description('规则校验') .option('-i, --input ', '规则文件路径(json)') .option('-o, --output ', '输出规则文件路径(json)') .option('-c, --concurrency ', '任务并发数', '10') diff --git a/packages/cli/src/command/web.ts b/packages/cli/src/command/web.ts index bd14b803..348338c5 100644 --- a/packages/cli/src/command/web.ts +++ b/packages/cli/src/command/web.ts @@ -8,7 +8,7 @@ const __dirname = path.resolve(path.dirname(__filename), '..'); export default (program: Command) => { program - .command('web') + .command('web', { isDefault: true }) .description('启用一个 WEB 服务') .option('-p, --port ', '端口', '8898') .action((options: any) => {