zowe-cli-cics-deploy-plugin
Version:
IBM CICS Bundle generation and deployment for Zowe CLI
64 lines • 3.53 kB
JavaScript
;
/*
* 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 IBM Corp, 2019
*
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PushBundleDefinition = void 0;
const Name_option_1 = require("../../shared/Name.option");
const Targetdir_option_1 = require("./options/Targetdir.option");
const Cicsplex_option_1 = require("../../shared/Cicsplex.option");
const Scope_option_1 = require("../../shared/Scope.option");
const Csdgroup_option_1 = require("../../shared/Csdgroup.option");
const Resgroup_option_1 = require("../../shared/Resgroup.option");
const Cicshlq_option_1 = require("../../shared/Cicshlq.option");
const Cpsmhlq_option_1 = require("../../shared/Cpsmhlq.option");
const Jobcard_option_1 = require("../../shared/Jobcard.option");
const Timeout_option_1 = require("../../shared/Timeout.option");
const TargetState_option_1 = require("../../deploy/bundle/options/TargetState.option");
const Description_option_1 = require("../../deploy/bundle/options/Description.option");
const Verbose_option_1 = require("../../shared/Verbose.option");
const Overwrite_option_1 = require("./options/Overwrite.option");
const ZosmfOptions_1 = require("../../shared/ZosmfOptions");
const SshOptions_1 = require("./options/SshOptions");
const CmciOptions_1 = require("./options/CmciOptions");
/**
* Imperative command for the Bundle sub-option of Push.
*
*/
exports.PushBundleDefinition = {
name: "bundle",
aliases: ["b", "bun", "bund"],
summary: "Push a CICS bundle",
description: "Push a CICS bundle from the working directory to a target CICSplex.",
type: "command",
handler: __dirname + "/PushBundle.handler",
options: [Name_option_1.NameOption, Targetdir_option_1.TargetdirOption, Cicsplex_option_1.CicsplexOption, Scope_option_1.ScopeOption, Csdgroup_option_1.CsdgroupOption, Resgroup_option_1.ResgroupOption,
Cicshlq_option_1.CicshlqOption, Cpsmhlq_option_1.CpsmhlqOption, Description_option_1.DescriptionOption, Jobcard_option_1.JobcardOption, Timeout_option_1.TimeoutOption, TargetState_option_1.TargetStateOption,
Verbose_option_1.VerboseOption, Overwrite_option_1.OverwriteOption]
.concat(ZosmfOptions_1.ZosmfOptions.CICS_DEPLOY_ZOSMF_CONNECTION_OPTIONS)
.concat(SshOptions_1.SshOptions.CICS_DEPLOY_SSH_CONNECTION_OPTIONS)
.concat(CmciOptions_1.CmciOptions.CICS_DEPLOY_CMCI_CONNECTION_OPTIONS),
profile: { optional: ["cics-deploy", "zosmf", "ssh", "cics"] },
examples: [
{
description: "Push a CICS bundle from the working directory by using default cics-deploy, cics, ssh and zosmf profiles",
options: `--name EXAMPLE --target-directory /u/example/bundles`
},
{
description: "Push a CICS bundle from the working directory by using specific zosmf, ssh & cics-deploy profiles",
options: `--name EXAMPLE --target-directory /u/example/bundles --zosmf-profile testplex --cics-deploy-profile devcics --ssh-profile ssh`
},
{
description: "Push a CICS bundle from the working directory replacing any bundle of the same name that is already deployed",
options: `--name EXAMPLE --target-directory /u/example/bundles --overwrite`
}
]
};
//# sourceMappingURL=PushBundle.definition.js.map