kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
24 lines • 861 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@kui-shell/core");
const usage_common_1 = require("../util/usage-common");
const strings = core_1.i18n('plugin-manager');
const usage = {
strict: 'commands',
command: 'commands',
breadcrumb: strings('offered commands'),
docs: strings('list commands offered by an installed shell plugin'),
example: 'plugin commands <plugin>',
required: usage_common_1.installedPlugin,
related: ['plugin install', 'plugin list']
};
const doList = ({ argvNoOptions }) => {
const plugin = argvNoOptions[argvNoOptions.indexOf('commands') + 1];
return core_1.Plugins.commandsOffered(plugin);
};
exports.default = (commandTree) => {
commandTree.listen('/plugin/commands', doList, {
usage
});
};
//# sourceMappingURL=commands.js.map