zowe-cli-cics-deploy-plugin
Version:
IBM CICS Bundle generation and deployment for Zowe CLI
52 lines • 2.43 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.GenerateBundleDefinition = void 0;
const Bundleid_option_1 = require("./options/Bundleid.option");
const Bundleversion_option_1 = require("./options/Bundleversion.option");
const Nodejsapp_option_1 = require("./options/Nodejsapp.option");
const Startscript_option_1 = require("./options/Startscript.option");
const Port_option_1 = require("./options/Port.option");
const Overwrite_option_1 = require("./options/Overwrite.option");
const Merge_option_1 = require("./options/Merge.option");
/**
* Imperative command for the Bundle sub-option of Generate.
*
*/
exports.GenerateBundleDefinition = {
name: "bundle",
aliases: ["b", "bun", "bund"],
summary: "Generate a CICS bundle",
description: "Generate a CICS bundle in the working directory. " +
"The associated data is constructed from a combination of the " +
"command-line options and the contents of package.json. If package.json exists, " +
"no options are required. If package.json does not exist, both --start-script and --nodejsapp are required.",
type: "command",
handler: __dirname + "/GenerateBundle.handler",
options: [Bundleid_option_1.BundleidOption, Bundleversion_option_1.BundleversionOption, Nodejsapp_option_1.NodejsappOption, Startscript_option_1.StartscriptOption, Port_option_1.PortOption,
Overwrite_option_1.OverwriteOption, Merge_option_1.MergeOption],
examples: [
{
description: "Generate a CICS bundle in the working directory, taking information from package.json",
options: ``
},
{
description: "Generate a CICS bundle in the working directory, based on package.json but using a bundle ID of \"mybundle\"",
options: `--bundle-id mybundle`
},
{
description: "Generate a CICS bundle in the working directory in which a package.json does not exist",
options: `--bundle-id mybundle --nodejsapp myapp --start-script server.js`
}
]
};
//# sourceMappingURL=GenerateBundle.definition.js.map