UNPKG

kui-shell

Version:

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

51 lines 1.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const all = ['compose', 'new', 'edit']; const allExcept = (cmd) => all.filter(_ => _ !== cmd); exports.toplevelUsage = { title: 'Editing operations', header: 'These commands will help you edit existing or create new assets', example: 'editor <command>', commandPrefix: 'editor', available: [{ command: 'edit', docs: 'Edit an existing file or entity' }] }; exports.editUsage = (command) => ({ command, strict: command, title: 'Editor', header: 'Open a given file or entity for editing.', example: `${command} <filepath>`, required: [ { name: '<filepath>', docs: 'The local file path or entity name to edit', file: true, implicitOK: ['actions', 'activations'] } ], optional: [ { name: '--create', boolean: true, docs: 'Indicates that you want to create a local file (and parent directories as needed)' }, { name: '--language', hidden: true, docs: 'For internal use, specify a language for coloring and IntelliSense' }, { name: '--name', hidden: true, docs: 'For internal use, specify a name to show up in the sidecar header' }, { name: '--type', hidden: true, docs: 'For internal use, specify a type to show up in the sidecar header' } ], parents: [{ command: 'editor' }], related: allExcept('edit') }); //# sourceMappingURL=usage.js.map