UNPKG

@veecode-platform/safira-cli

Version:

Generate a microservice project from your spec.

29 lines (28 loc) 1.19 kB
"use strict"; 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 OktetoContextShow extends okteto_base_command_1.OktetoBaseCommand { async run() { const { args, flags } = await this.parse(OktetoContextShow); try { new okteto_client_1.OktetoClient().contextShow(flags.output || "json"); } catch (error) { this.log(color_1.default.red(error.message)); } } } exports.default = OktetoContextShow; OktetoContextShow.description = "Print the current okteto context"; OktetoContextShow.examples = [ "<%= config.bin %> <%= command.id %>", ]; OktetoContextShow.flags = { help: core_1.Flags.boolean({ description: "help for show" }), output: core_1.Flags.enum({ char: "o", description: "output format. One of: ['json', 'yaml'] (default \"json\")", options: ["json", "yaml"] }), }; OktetoContextShow.args = [];