@cliz/gpm
Version:
Git Project Manager
19 lines (18 loc) • 681 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const cli_1 = require("@cliz/cli");
const core_1 = require("../core");
exports.default = (0, cli_1.defineSubCommand)((createCommand) => {
return createCommand('Project Run')
.option('-e, --exec <command>', 'Custom Dev Command')
.action(async (action) => {
var _a;
const options = action.options;
const command = (_a = options.command) !== null && _a !== void 0 ? _a : options.exec;
await core_1.default.prepare();
await core_1.default.devtools.prepare();
await core_1.default.devtools.run({
command,
});
});
});