"use strict";
/*
* 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.ActiveWorkflows = void 0;
const ActiveWorkflows_options_1 = require("./ActiveWorkflows.options");
const path_1 = require("path");
/**
 * This object defines the command for listing workflow instance(s) in zOSMF.
 * This is not something that is intended to be used outside of this npm package.
 *
 * @private
 */
exports.ActiveWorkflows = {
    name: "active-workflows",
    aliases: ["aw"],
    summary: "List active workflow instance(s) in z/OSMF",
    description: "List active workflow instance(s) in z/OSMF.\n" +
        "Multiple filters can be used together.\n" +
        "Omitting all options will list all workflows on the sysplex.",
    type: "command",
    handler: (0, path_1.join)(__dirname, "ActiveWorkflows.handler"),
    profile: {
        optional: ["zosmf"]
    },
    options: [
        ActiveWorkflows_options_1.ListActiveWorkflowsOptions.workflowName,
        ActiveWorkflows_options_1.ListActiveWorkflowsOptions.category,
        ActiveWorkflows_options_1.ListActiveWorkflowsOptions.system,
        ActiveWorkflows_options_1.ListActiveWorkflowsOptions.owner,
        ActiveWorkflows_options_1.ListActiveWorkflowsOptions.vendor,
        ActiveWorkflows_options_1.ListActiveWorkflowsOptions.statusName
    ],
    outputFormatOptions: true,
    examples: [
        {
            description: "List the workflow with name \"testworkflow\"",
            options: "--workflow-name \"testworkflow\""
        },
        {
            description: "List multiple active workflows on the entire syspex with names containing\"workflow\"",
            options: "--workflow-name \".*workflow.*\""
        },
        {
            description: "List multiple active workflows on system \"IBMSYS\" with names beginnig with \"testW\" that are in status \"complete\"",
            options: "--workflow-name \"test.*\" --system \"IBMSYS\" --status-name \"complete\""
        }
    ]
};
//# sourceMappingURL=ActiveWorkflows.definition.js.map