UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

19 lines 738 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@kui-shell/core"); const exportCommand = ({ tab, parsedOptions }) => { const curDic = core_1.Models.SymbolTable.read(tab); const toBeParsed = parsedOptions._[1]; const arr = toBeParsed.split('='); curDic[arr[0]] = arr[1]; core_1.Models.SymbolTable.write(tab, curDic); return true; }; const usage = { command: 'export', docs: 'Export a variable or function to the environment of all the child processes running in the current shell' }; exports.default = (commandTree) => { commandTree.listen('/export', exportCommand, { usage, noAuthOk: true, inBrowserOk: true }); }; //# sourceMappingURL=export.js.map