Skip to content

Commit

Permalink
cli: allow async printLogo
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 26, 2024
1 parent 88e913b commit e95e6bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/program.mts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ type BuildCommands = {
loadCommand?: (key: string) => Promise<(...args: any[]) => Promise<any>>;
defaultCommand?: string;
entrypointGenerator?: string;
printLogo?: () => void;
silent?: boolean;
printBlueprintLogo?: () => void;
printLogo?: () => void | Promise<void>;
printBlueprintLogo?: () => void | Promise<void>;
createEnvBuilder: (options?: BaseEnvironmentOptions) => Promise<EnvironmentBuilder>;
};

Expand Down Expand Up @@ -270,8 +270,8 @@ export const buildCommands = ({
}

if (!silent) {
printLogo();
printBlueprintLogo();
await printLogo();
await printBlueprintLogo();
}

const command = this;
Expand Down

0 comments on commit e95e6bc

Please sign in to comment.