mirror of https://github.com/YunYouJun/valaxy
feat: add valaxy debug cmd console
This commit is contained in:
parent
b9cd544888
commit
6548b37fcb
|
@ -1,11 +1,18 @@
|
|||
import type { Argv } from 'yargs'
|
||||
import os from 'node:os'
|
||||
import process from 'node:process'
|
||||
import { consola } from 'consola'
|
||||
import { colors } from 'consola/utils'
|
||||
import { version } from '../../package.json'
|
||||
|
||||
/**
|
||||
* @TODO valaxy debug
|
||||
*/
|
||||
export function registerDebugCommand(cli: Argv) {
|
||||
cli.command('debug', 'Debug your blog', async () => {
|
||||
consola.info('提问前请携带以下信息:')
|
||||
console.log()
|
||||
consola.log(' Operating System:', colors.green(os.platform()))
|
||||
consola.log(' Node.JS Version:', colors.green(process.version))
|
||||
consola.log(' Valaxy Version:', colors.cyan(`v${version}`))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue