@veecode-platform/safira-cli
Version:
Generate a microservice project from your spec.
29 lines (28 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const color_1 = tslib_1.__importDefault(require("@oclif/color"));
const core_1 = require("@oclif/core");
const okteto_base_command_1 = require("../../../base-command/okteto-base-command");
const okteto_client_1 = require("../../../okteto/okteto-client");
class OktetoContextList extends okteto_base_command_1.OktetoBaseCommand {
async run() {
const { args, flags } = await this.parse(OktetoContextList);
try {
new okteto_client_1.OktetoClient().contextList(flags.output || "");
}
catch (error) {
this.log(color_1.default.red(error.message));
}
}
}
exports.default = OktetoContextList;
OktetoContextList.description = "List available okteto contexts";
OktetoContextList.examples = [
"<%= config.bin %> <%= command.id %>",
];
OktetoContextList.flags = {
help: core_1.Flags.boolean({ description: "help for list" }),
output: core_1.Flags.string({ char: "o", description: "output format. One of: json|yaml" }),
};
OktetoContextList.args = [];