Skip to content

Commit

Permalink
fix(core): ensure we print dev command banner at top
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 authored and thsig committed Nov 23, 2021
1 parent a36b544 commit d31792e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ export class DevCommand extends Command<DevCommandArgs, DevCommandOpts> {
printHeader(headerLog, "Dev", "keyboard")
}

async prepare({ log, footerLog }: PrepareParams<DevCommandArgs, DevCommandOpts>) {
async prepare({ headerLog, footerLog }: PrepareParams<DevCommandArgs, DevCommandOpts>) {
// print ANSI banner image
if (chalk.supportsColor && chalk.supportsColor.level > 2) {
const data = await readFile(ansiBannerPath)
log.info(data.toString())
headerLog.info(data.toString())
}

log.info(chalk.gray.italic(`Good ${getGreetingTime()}! Let's get your environment wired up...`))
log.info("")
headerLog.info(chalk.gray.italic(`Good ${getGreetingTime()}! Let's get your environment wired up...`))
headerLog.info("")

this.server = await startServer({ log: footerLog })

Expand Down

0 comments on commit d31792e

Please sign in to comment.