Skip to content

Commit

Permalink
feat: support display version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenQingchuan committed Sep 8, 2022
1 parent 03b6646 commit d9945d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.ts
Expand Up @@ -10,6 +10,7 @@ import inquirer from 'inquirer'
import inquirerFileTreeSelection from 'inquirer-file-tree-selection-prompt'
import jsonc from 'jsonc-parser'
import { execaCommand } from 'execa'
import packageJSON from '../package.json' assert { type: 'json' }

inquirer.registerPrompt('file-tree-selection', inquirerFileTreeSelection)

Expand Down Expand Up @@ -260,11 +261,13 @@ async function selectFile(
try {
console.log(
`\n${chalk.bold.blue(`
_____ _____ ____ _
_____ _____ ____ _
|_ _|__ ___| ____|_ __ _ __| _ \\(_)_ __ ___
| |/ __|/ __| _| | '__| '__| | | | | '__/ __|
| |\\__ \\ (__| |___| | | | | |_| | | | \\__ \\
|_||___/\\___|_____|_| |_| |____/|_|_| |___/
|_||___/\\___|_____|_| |_| |____/|_|_| |___/ ${chalk.cyanBright(
`[version: v${packageJSON.version}]`
)}
`)}`
)
const parsedEnvArgs = cli.parse()
Expand Down

0 comments on commit d9945d9

Please sign in to comment.