From ab28a2be4cd10fa6ca0018121c9d733b0673741f Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 7 Feb 2022 21:54:07 +0800 Subject: [PATCH] fix: missing app command args --- packages/server/src/application.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/application.ts b/packages/server/src/application.ts index 83b265e53..a50160055 100644 --- a/packages/server/src/application.ts +++ b/packages/server/src/application.ts @@ -132,12 +132,12 @@ export class Application exten return this.resourcer.registerActions(handlers); } - command(nameAndArgs: string, opts?: CommandOptions) { - return this.cli.command(nameAndArgs, opts); + command(name: string, desc?: string, opts?: CommandOptions): Command { + return this.cli.command(name, desc, opts); } findCommand(name: string): Command { - return (this.cli as any)._findCommand(name); + return this.cli._findCommand(name); } async load() {