fix: fix bugs for -V
This commit is contained in:
@@ -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([
|
||||
{
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user