@zowe/cli
Version:
Zowe CLI is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.
51 lines • 1.7 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 Contributors to the Zowe Project.
*
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Workflow = void 0;
const Archive_options_1 = require("../Archive.options");
const path_1 = require("path");
/**
* This object defines the command for archiving workflow instance on zOSMF.
* This is not something that is intended to be used outside of this npm package.
*
* @private
*/
exports.Workflow = {
name: "active-workflow",
aliases: ["aw"],
description: "Archive an active workflow instance in z/OSMF.",
type: "command",
handler: (0, path_1.join)(__dirname, "../Archive.handler"),
profile: {
optional: ["zosmf"]
},
options: [
Archive_options_1.ArchiveOptions.workflowName,
Archive_options_1.ArchiveOptions.workflowKey
],
outputFormatOptions: true,
examples: [
{
description: "Archive a workflow with workflow name \"testworkflow\"",
options: "--workflow-name \"testworkflow\" "
},
{
description: "Archive multiple workflows with workflow names starting with \"test\"",
options: "--workflow-name \"test.*\" "
},
{
description: "Archive a workflow with workflow key \"123-456-abv-xyz\"",
options: "--workflow-key \"123-456-abv-xyz\" "
}
]
};
//# sourceMappingURL=Archive.workflow.definition.js.map