From 67594389210ea70ab084685da853c681847cbcad Mon Sep 17 00:00:00 2001 From: xion Date: Wed, 30 Apr 2025 01:45:53 +0800 Subject: [PATCH] fix: fix bugs for -V --- assistant/tasks/silkyai-cli/package.json | 2 +- assistant/tasks/silkyai-cli/src/mdoules/talkshow.ts | 2 +- bin/assistant-server.js | 0 package.json | 2 +- src/command/deploy.ts | 1 + src/program.ts | 2 +- test/index.html | 1 + 7 files changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 bin/assistant-server.js create mode 100644 test/index.html diff --git a/assistant/tasks/silkyai-cli/package.json b/assistant/tasks/silkyai-cli/package.json index 4cac5ba..31b391c 100644 --- a/assistant/tasks/silkyai-cli/package.json +++ b/assistant/tasks/silkyai-cli/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/silky-cli", - "version": "0.0.10", + "version": "0.0.11", "description": "", "main": "index.js", "scripts": { diff --git a/assistant/tasks/silkyai-cli/src/mdoules/talkshow.ts b/assistant/tasks/silkyai-cli/src/mdoules/talkshow.ts index 8d9832e..10e5694 100644 --- a/assistant/tasks/silkyai-cli/src/mdoules/talkshow.ts +++ b/assistant/tasks/silkyai-cli/src/mdoules/talkshow.ts @@ -15,7 +15,7 @@ export const init = { key: TaskKey.ev, command: 'npm install -g @kevisual/cli --registry=https://registry.npmmirror.com', type: 'npm-install', - before: 'ev -v', + before: 'ev --version', beforeCheck: '.', tags: ['env', 'must-env'], }; diff --git a/bin/assistant-server.js b/bin/assistant-server.js old mode 100644 new mode 100755 diff --git a/package.json b/package.json index 9f59b0b..09f071e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/envision-cli", - "version": "0.0.44", + "version": "0.0.45", "description": "envision command tools", "main": "dist/app.mjs", "type": "module", diff --git a/src/command/deploy.ts b/src/command/deploy.ts index 43e5226..2d4d06b 100644 --- a/src/command/deploy.ts +++ b/src/command/deploy.ts @@ -54,6 +54,7 @@ const command = new Command('deploy') if (!key && pkgInfo?.appKey) { key = pkgInfo?.appKey || ''; } + console.log('start deploy') if (!version || !key) { const answers = await inquirer.prompt([ { diff --git a/src/program.ts b/src/program.ts index c2fb758..44b3495 100644 --- a/src/program.ts +++ b/src/program.ts @@ -7,7 +7,7 @@ try { if (ENVISION_VERSION) version = ENVISION_VERSION; } catch (e) {} // @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(() => { console.log('List files'); diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/test/index.html @@ -0,0 +1 @@ +test \ No newline at end of file