fix: fix bugs for -V
This commit is contained in:
parent
f7b438aefb
commit
6759438921
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kevisual/silky-cli",
|
"name": "@kevisual/silky-cli",
|
||||||
"version": "0.0.10",
|
"version": "0.0.11",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -15,7 +15,7 @@ export const init = {
|
|||||||
key: TaskKey.ev,
|
key: TaskKey.ev,
|
||||||
command: 'npm install -g @kevisual/cli --registry=https://registry.npmmirror.com',
|
command: 'npm install -g @kevisual/cli --registry=https://registry.npmmirror.com',
|
||||||
type: 'npm-install',
|
type: 'npm-install',
|
||||||
before: 'ev -v',
|
before: 'ev --version',
|
||||||
beforeCheck: '.',
|
beforeCheck: '.',
|
||||||
tags: ['env', 'must-env'],
|
tags: ['env', 'must-env'],
|
||||||
};
|
};
|
||||||
|
0
bin/assistant-server.js
Normal file → Executable file
0
bin/assistant-server.js
Normal file → Executable file
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kevisual/envision-cli",
|
"name": "@kevisual/envision-cli",
|
||||||
"version": "0.0.44",
|
"version": "0.0.45",
|
||||||
"description": "envision command tools",
|
"description": "envision command tools",
|
||||||
"main": "dist/app.mjs",
|
"main": "dist/app.mjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -54,6 +54,7 @@ const command = new Command('deploy')
|
|||||||
if (!key && pkgInfo?.appKey) {
|
if (!key && pkgInfo?.appKey) {
|
||||||
key = pkgInfo?.appKey || '';
|
key = pkgInfo?.appKey || '';
|
||||||
}
|
}
|
||||||
|
console.log('start deploy')
|
||||||
if (!version || !key) {
|
if (!version || !key) {
|
||||||
const answers = await inquirer.prompt([
|
const answers = await inquirer.prompt([
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@ try {
|
|||||||
if (ENVISION_VERSION) version = ENVISION_VERSION;
|
if (ENVISION_VERSION) version = ENVISION_VERSION;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
program.name('app').description('A CLI tool with envison').version(version, '-v, --version');
|
program.name('app').description('A CLI tool with envison').version(version, '-V, --version');
|
||||||
|
|
||||||
const ls = new Command('ls').description('List files in the current directory').action(() => {
|
const ls = new Command('ls').description('List files in the current directory').action(() => {
|
||||||
console.log('List files');
|
console.log('List files');
|
||||||
|
1
test/index.html
Normal file
1
test/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
test
|
Loading…
x
Reference in New Issue
Block a user