fix(cli/init): terminal message has not enough contrast (#2786)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/2787/head
btea 1 year ago committed by GitHub
parent e0be677554
commit 4d9d977519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,6 +42,9 @@ if (!command || command === 'dev') {
) )
process.exit(1) process.exit(1)
}) })
} else if (command === 'init') {
createLogger().info('', { clear: true })
init()
} else { } else {
logVersion() logVersion()
if (command === 'build') { if (command === 'build') {
@ -56,8 +59,6 @@ if (!command || command === 'dev') {
) )
process.exit(1) process.exit(1)
}) })
} else if (command === 'init') {
init()
} else { } else {
createLogger().error(c.red(`unknown command "${command}".`)) createLogger().error(c.red(`unknown command "${command}".`))
process.exit(1) process.exit(1)

@ -9,7 +9,7 @@ import {
} from '@clack/prompts' } from '@clack/prompts'
import fs from 'fs-extra' import fs from 'fs-extra'
import path from 'path' import path from 'path'
import { black, cyan, bgCyan, bold, yellow } from 'picocolors' import { cyan, bold, yellow } from 'picocolors'
import { fileURLToPath } from 'url' import { fileURLToPath } from 'url'
import template from 'lodash.template' import template from 'lodash.template'
@ -29,7 +29,7 @@ export interface ScaffoldOptions {
} }
export async function init() { export async function init() {
intro(bgCyan(bold(black(' Welcome to VitePress! ')))) intro(bold(cyan(' Welcome to VitePress! ')))
const options: ScaffoldOptions = await group( const options: ScaffoldOptions = await group(
{ {

Loading…
Cancel
Save