@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
17 lines (16 loc) • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.commandKubeCurrentContext = void 0;
const defineCommand_1 = require("../../core/defineCommand");
const cluster_1 = require("../../utils/cluster");
exports.commandKubeCurrentContext = (0, defineCommand_1.defineCommand)({
name: "k8s current-context",
description: "show current kubernetes context",
group: "general",
inputs: {},
execute: async ctx => {
ctx.log(await (0, cluster_1.getCurrentContext)());
}
});