@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
18 lines (17 loc) • 707 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateCli = void 0;
const plugins_1 = require("../../plugins");
/**
* Update current CLI version
*/
const updateCli = async (version = "latest", options) => {
if (version) {
await (0, plugins_1.progressCmd)(`npm i @topgroup/diginext@${version} --location=global`, { isDebugging: options === null || options === void 0 ? void 0 : options.isDebugging });
}
else {
await (0, plugins_1.progressCmd)(`npm update @topgroup/diginext --location=global`, { isDebugging: options === null || options === void 0 ? void 0 : options.isDebugging });
}
return true;
};
exports.updateCli = updateCli;