Skip to content

Commit

Permalink
fix(cli): clear console before startup
Browse files Browse the repository at this point in the history
  • Loading branch information
arexon committed Aug 9, 2022
1 parent ca53052 commit 0c5d23a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/src/utils/log.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { blue, cyan } from 'colorette'
import { blue, cyan, green } from 'colorette'
import consola from 'consola'
import { version } from '../../package.json'
import type { CommandMeta } from '../commands'
Expand Down Expand Up @@ -26,5 +26,6 @@ export function logHelp(meta?: CommandMeta): void {
}

export function logBanner() {
logger.start(blue(`Sedge CLI v${version}`))
console.clear()
logger.start(green(`Sedge CLI v${version}`))
}

0 comments on commit 0c5d23a

Please sign in to comment.