Skip to content

Commit

Permalink
feat(cli): 配置默认命令
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Aug 20, 2024
1 parent 573ca04 commit 0e2bb44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/command/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { timeoutWith } from '../utils/promise';
// TODO: 搜索校验 发现校验
export default (program: Command) => {
program
.description('规则校验')
.command('check')
.description('规则校验')
.option('-i, --input <string>', '规则文件路径(json)')
.option('-o, --output <string>', '输出规则文件路径(json)')
.option('-c, --concurrency <number>', '任务并发数', '10')
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/command/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <string>', '端口', '8898')
.action((options: any) => {
Expand Down

0 comments on commit 0e2bb44

Please sign in to comment.