From e95e6bc749dcb87a054720de8048156b6949363b Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Thu, 26 Sep 2024 10:47:10 -0300 Subject: [PATCH] cli: allow async printLogo --- cli/program.mts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/program.mts b/cli/program.mts index 2dd13813eb98..33ca7800e992 100644 --- a/cli/program.mts +++ b/cli/program.mts @@ -54,9 +54,9 @@ type BuildCommands = { loadCommand?: (key: string) => Promise<(...args: any[]) => Promise>; defaultCommand?: string; entrypointGenerator?: string; - printLogo?: () => void; silent?: boolean; - printBlueprintLogo?: () => void; + printLogo?: () => void | Promise; + printBlueprintLogo?: () => void | Promise; createEnvBuilder: (options?: BaseEnvironmentOptions) => Promise; }; @@ -270,8 +270,8 @@ export const buildCommands = ({ } if (!silent) { - printLogo(); - printBlueprintLogo(); + await printLogo(); + await printBlueprintLogo(); } const command = this;