@veecode-platform/safira-cli
Version:
Generate a microservice project from your spec.
25 lines (24 loc) • 922 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const color_1 = tslib_1.__importDefault(require("@oclif/color"));
const okteto_base_command_1 = require("../../../base-command/okteto-base-command");
const okteto_client_1 = require("../../../okteto/okteto-client");
class OktetoContextDelete extends okteto_base_command_1.OktetoBaseCommand {
async run() {
const { args, flags } = await this.parse(OktetoContextDelete);
try {
new okteto_client_1.OktetoClient().contextDelete();
}
catch (error) {
this.log(color_1.default.red(error.message));
}
}
}
exports.default = OktetoContextDelete;
OktetoContextDelete.description = "Delete a okteto context";
OktetoContextDelete.examples = [
"<%= config.bin %> <%= command.id %>",
];
OktetoContextDelete.flags = {};
OktetoContextDelete.args = [];