mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
18 lines
334 B
JavaScript
18 lines
334 B
JavaScript
import process from 'node:process'
|
|
import { getConfig } from './getConfig.js'
|
|
import { getHelp } from './getHelp.js'
|
|
import { generator } from './generator.js'
|
|
|
|
const config = getConfig()
|
|
|
|
if (config.help) {
|
|
getHelp()
|
|
process.exit(0)
|
|
}
|
|
else {
|
|
generator(config).catch((err) => {
|
|
console.error(err)
|
|
process.exit(1)
|
|
})
|
|
}
|