Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { ICommandOptionDefinition } from "@zowe/imperative";
import { ZosmfSession } from "@zowe/cli";
/**
* zosMF command line options, derived from zowe-cli equivalents
*/
export class ZosmfOptions {
public static CICS_DEPLOY_ZOSMF_OPTION_HOST: ICommandOptionDefinition = {
name: "zosmf-host",
aliases: ["zh"],
description: ZosmfSession.ZOSMF_OPTION_HOST.description,
type: ZosmfSession.ZOSMF_OPTION_HOST.type,
required: false,
group: ZosmfSession.ZOSMF_CONNECTION_OPTION_GROUP
};
public static CICS_DEPLOY_ZOSMF_OPTION_PORT: ICommandOptionDefinition = {
name: "zosmf-port",
aliases: ["zp"],
description: ZosmfSession.ZOSMF_OPTION_PORT.description,
type: ZosmfSession.ZOSMF_OPTION_PORT.type,
required: false,
group: ZosmfSession.ZOSMF_CONNECTION_OPTION_GROUP
};
public static CICS_DEPLOY_ZOSMF_OPTION_USER: ICommandOptionDefinition = {
name: "zosmf-user",
aliases: ["zu"],
description: ZosmfSession.ZOSMF_OPTION_USER.description,
type: ZosmfSession.ZOSMF_OPTION_USER.type,
public static CICS_DEPLOY_ZOSMF_OPTION_REJECT_UNAUTHORIZED: ICommandOptionDefinition = {
name: "zosmf-reject-unauthorized",
aliases: ["zru"],
description: ZosmfSession.ZOSMF_OPTION_REJECT_UNAUTHORIZED.description,
type: ZosmfSession.ZOSMF_OPTION_REJECT_UNAUTHORIZED.type,
required: false,
group: ZosmfSession.ZOSMF_CONNECTION_OPTION_GROUP
};
public static CICS_DEPLOY_ZOSMF_OPTION_BASE_PATH: ICommandOptionDefinition = {
name: "zosmf-base-path",
aliases: ["zbp"],
description: ZosmfSession.ZOSMF_OPTION_BASE_PATH.description,
type: ZosmfSession.ZOSMF_OPTION_BASE_PATH.type,
required: false,
group: ZosmfSession.ZOSMF_CONNECTION_OPTION_GROUP
};
/**
* Options related to connecting to z/OSMF
*/
public static CICS_DEPLOY_ZOSMF_CONNECTION_OPTIONS: ICommandOptionDefinition[] = [
ZosmfOptions.CICS_DEPLOY_ZOSMF_OPTION_HOST,
ZosmfOptions.CICS_DEPLOY_ZOSMF_OPTION_PORT,
ZosmfOptions.CICS_DEPLOY_ZOSMF_OPTION_USER,
ZosmfOptions.CICS_DEPLOY_ZOSMF_OPTION_PASSWORD,
ZosmfOptions.CICS_DEPLOY_ZOSMF_OPTION_REJECT_UNAUTHORIZED,
ZosmfOptions.CICS_DEPLOY_ZOSMF_OPTION_BASE_PATH
];
}