fix: update envision-cli tools for proxy and run app

This commit is contained in:
2024-12-05 02:26:47 +08:00
parent 2145fca826
commit da6211299b
15 changed files with 738 additions and 479 deletions

View File

@@ -1,8 +1,13 @@
import { program, Command } from 'commander';
import fs from 'fs';
// 将多个子命令加入主程序中
program.name('app').description('A CLI tool with envison').version('0.0.3');
let version = '0.0.1';
try {
// @ts-ignore
if (VERSION) version = VERSION;
} catch (e) {}
// @ts-ignore
program.name('app').description('A CLI tool with envison').version(version);
const ls = new Command('ls').description('List files in the current directory').action(() => {
console.log('List files');