UNPKG

@platform/cell.tmpl

Version:

Template generator for CellOS.

29 lines (28 loc) 881 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; var tslib_1 = require("tslib"); var cmd_tmpl_1 = require("./cmd.tmpl"); exports.init = function (cli) { var handler = function (e) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { var dir, install; return tslib_1.__generator(this, function (_a) { switch (_a.label) { case 0: dir = process.cwd(); install = false; return [4, cmd_tmpl_1.tmpl({ dir: dir, install: install })]; case 1: _a.sent(); return [2]; } }); }); }; cli.command({ name: 'tmpl', alias: 't', description: 'Create from template.', handler: handler, }); return cli; };