@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.96 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.DeleteActiveWorkflow = void 0;
const path_1 = require("path");
const DeleteActiveWorkflow_options_1 = require("../deleteActiveWorkflow/DeleteActiveWorkflow.options");
/**
* This object defines the command for delete workflow using workflow key within zosworkflows.
* This is not something that is intended to be used outside of this npm package.
*
* @private
*/
exports.DeleteActiveWorkflow = {
name: "active-workflow",
aliases: ["aw"],
summary: "Delete an active workflow instance in z/OSMF",
description: "Delete an active workflow instance in z/OSMF.",
type: "command",
handler: (0, path_1.join)(__dirname, "../Delete.common.handler"),
profile: {
optional: ["zosmf"]
},
options: [
DeleteActiveWorkflow_options_1.DeleteWorkflowOptions.workflowKey,
DeleteActiveWorkflow_options_1.DeleteWorkflowOptions.workflowName
],
examples: [
{
description: "To delete a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"",
options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\""
},
{
description: "To delete a workflow instance in z/OSMF with workflow name \"testWorkflow\"",
options: "--workflow-name \"testWorkflow\""
},
{
description: "To delete multiple workflow instances in z/OSMF with names starting with \"test\"",
options: "--workflow-name \"test.*\""
}
]
};
//# sourceMappingURL=DeleteActiveWorkflow.definition.js.map