UNPKG

@zowe/cli

Version:

Zowe CLI is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.

206 lines 9.02 kB
"use strict"; /* * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v2.0 which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-v20.html * * SPDX-License-Identifier: EPL-2.0 * * Copyright Contributors to the Zowe Project. * */ Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const Constants_1 = require("./Constants"); const zosmf_1 = require("./zosmf"); const ZosTso_constants_1 = require("./zostso/src/cli/constants/ZosTso.constants"); const zosuss_1 = require("./zosuss"); const config = { productDisplayName: Constants_1.Constants.DISPLAY_NAME, commandModuleGlobs: ["**/cli/*.definition!(.d).*s"], rootCommandDescription: Constants_1.Constants.DESCRIPTION, defaultHome: Constants_1.Constants.HOME_DIR, envVariablePrefix: Constants_1.Constants.ENV_PREFIX, webHelpLogoImgPath: path.join(__dirname, "..", "web-help", "logo.png"), logging: { appLogging: { logFile: Constants_1.Constants.LOG_LOCATION }, }, profiles: [ { type: "zosmf", schema: { type: "object", title: "z/OSMF Profile", description: "z/OSMF Profile", properties: { host: { type: "string", optionDefinition: zosmf_1.ZosmfSession.ZOSMF_OPTION_HOST, }, port: { type: "number", optionDefinition: zosmf_1.ZosmfSession.ZOSMF_OPTION_PORT, }, user: { type: "string", secure: true, optionDefinition: zosmf_1.ZosmfSession.ZOSMF_OPTION_USER, }, password: { type: "string", secure: true, optionDefinition: zosmf_1.ZosmfSession.ZOSMF_OPTION_PASSWORD, }, rejectUnauthorized: { type: "boolean", optionDefinition: zosmf_1.ZosmfSession.ZOSMF_OPTION_REJECT_UNAUTHORIZED, }, basePath: { type: "string", optionDefinition: zosmf_1.ZosmfSession.ZOSMF_OPTION_BASE_PATH, }, }, required: ["host"], }, createProfileExamples: [ { options: "zos123 --host zos123 --port 1443 --user ibmuser --password myp4ss", description: "Create a zosmf profile called 'zos123' to connect to z/OSMF at host zos123 and port 1443" }, { options: "zos124 --host zos124 --user ibmuser --password myp4ss --reject-unauthorized false", description: "Create a zosmf profile called 'zos124' to connect to z/OSMF at the host zos124 (default port - 443) " + "and allow self-signed certificates" }, { options: "zosAPIML --host zosAPIML --port 2020 --user ibmuser --password myp4ss --reject-unauthorized false --base-path basePath", description: "Create a zosmf profile called 'zos124' to connect to z/OSMF at the host zos124 (default port - 443) " + "and allow self-signed certificates" } ], updateProfileExamples: [ { options: "zos123 --user newuser --password newp4ss", description: "Update a zosmf profile named 'zos123' with a new username and password" } ] }, { type: "tso", schema: { type: "object", title: "TSO Profile", description: "z/OS TSO/E User Profile", properties: { account: { type: "string", optionDefinition: ZosTso_constants_1.TSO_OPTION_ACCOUNT, }, characterSet: { type: "string", optionDefinition: ZosTso_constants_1.TSO_OPTION_CHAR_SET, }, codePage: { type: "string", optionDefinition: ZosTso_constants_1.TSO_OPTION_CODE_PAGE, }, columns: { type: "number", optionDefinition: ZosTso_constants_1.TSO_OPTION_COLUMNS, }, logonProcedure: { type: "string", optionDefinition: ZosTso_constants_1.TSO_OPTION_LOGON_PROCEDURE, }, regionSize: { type: "number", optionDefinition: ZosTso_constants_1.TSO_OPTION_REGION_SIZE, }, rows: { type: "number", optionDefinition: ZosTso_constants_1.TSO_OPTION_ROWS, }, }, required: ["account"], }, createProfileExamples: [ { description: "Create a tso profile called 'myprof' with default settings and JES accounting information of 'IZUACCT'", options: "myprof -a IZUACCT" }, { description: "Create a tso profile called 'largeregion' with a region size of 8192, a logon procedure of MYPROC, and " + "JES accounting information of '1234'", options: "largeregion -a 1234 --rs 8192" } ], updateProfileExamples: [ { description: "Update a tso profile called myprof with new JES accounting information", options: "myprof -a NEWACCT" } ] }, { type: "ssh", schema: { type: "object", title: "z/OS SSH Profile", description: "z/OS SSH Profile", properties: { host: { type: "string", optionDefinition: zosuss_1.SshSession.SSH_OPTION_HOST, }, port: { type: "number", optionDefinition: zosuss_1.SshSession.SSH_OPTION_PORT, }, user: { type: "string", optionDefinition: zosuss_1.SshSession.SSH_OPTION_USER, }, password: { type: "string", secure: true, optionDefinition: zosuss_1.SshSession.SSH_OPTION_PASSWORD, }, privateKey: { type: "string", optionDefinition: zosuss_1.SshSession.SSH_OPTION_PRIVATEKEY, }, keyPassphrase: { type: "string", secure: true, optionDefinition: zosuss_1.SshSession.SSH_OPTION_KEYPASSPHRASE, }, handshakeTimeout: { type: "number", optionDefinition: zosuss_1.SshSession.SSH_OPTION_HANDSHAKETIMEOUT, }, }, required: ["host", "user"], }, createProfileExamples: [ { options: "ssh111 --host sshhost --user ibmuser --password myp4ss", description: "Create a ssh profile called 'ssh111' to connect to z/OS SSH server at host 'zos123' and default port 22" }, { options: "ssh222 --host sshhost --port 13022 --user ibmuser --password myp4ss", description: "Create a ssh profile called 'ssh222' to connect to z/OS SSH server at host 'zos123' and port 13022" }, { options: "ssh333 --host sshhost --user ibmuser --privateKey /path/to/privatekey --keyPassphrase privateKeyPassphrase", description: "Create a ssh profile called 'ssh333' to connect to z/OS SSH server at host 'zos123' " + "using a privatekey '/path/to/privatekey' and its decryption passphrase 'privateKeyPassphrase' " + "for privatekey authentication" }, ] }, ] }; module.exports = config; //# sourceMappingURL=imperative.js.map