create-cliz
Version:
Cliz Multiple Commands CLI Template
15 lines (14 loc) • 543 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const cli_1 = require("@cliz/cli");
const create_1 = require("./core/create");
(0, cli_1.createSingleCommandProgram)(__dirname, { autoOutputHelp: false }, async function (program) {
program
.option('-c, --code-path <path>', '设置代码路径,默认为当前目录', {
default: process.env.CODE_PATH || process.cwd(),
})
.action(async ({ options }) => {
await (0, create_1.create)(options);
});
});