@yorha2b-lab/autodev 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/autodev.js +2 -1
- package/package.json +1 -1
package/bin/autodev.js
CHANGED
|
@@ -3,6 +3,7 @@ const fs = require('fs')
|
|
|
3
3
|
const path = require('path')
|
|
4
4
|
const chalk = require('chalk')
|
|
5
5
|
const figlet = require('figlet')
|
|
6
|
+
const pkg = require('../package.json')
|
|
6
7
|
const { program } = require('commander')
|
|
7
8
|
|
|
8
9
|
console.log(chalk.cyan(figlet.textSync('AutoDev', { horizontalLayout: 'full' })))
|
|
@@ -13,7 +14,7 @@ console.log(chalk.white(' [Mission] ') + chalk.yellow('Frontend Architecture Con
|
|
|
13
14
|
console.log(chalk.white(' [Bunker] ') + chalk.magenta('Glory to mankind. (人类荣光永存)'))
|
|
14
15
|
console.log(chalk.gray('--------------------------------------------------\n'))
|
|
15
16
|
|
|
16
|
-
program.version(
|
|
17
|
+
program.version(pkg.version).description('AI驱动的前端CRUD代码生成器')
|
|
17
18
|
program.option('-t, --template <type>', '指定前端框架模板', 'react')
|
|
18
19
|
|
|
19
20
|
program
|