import { ICommandDefinition } from "@zowe/imperative" ; import { ActiveWorkflowDetailsCommonOptions } from "./ActiveWorkflowDetails.common.options" ; import { join } from "path" ; private export const ActiveWorkflowDetails = { name : "active-workflow-details" , aliases : [ "awd" ] , description : "Get the details of an active z/OSMF workflow" , type : "command" , handler : join ( __dirname , "./ActiveWorkflowDetails.handler" ) , profile : { optional : [ "zosmf" ] } , options : ( [ ActiveWorkflowDetailsCommonOptions . workflowName , ActiveWorkflowDetailsCommonOptions . workflowKey , ActiveWorkflowDetailsCommonOptions . listSteps , ActiveWorkflowDetailsCommonOptions . stepsSummaryOnly , ActiveWorkflowDetailsCommonOptions . listVariables , ActiveWorkflowDetailsCommonOptions . skipWorkflowSummary ] ) , examples : [ { description : "To list the details of an active workflow with key \"7c62c790-0340-86b2-61ce618d8f8c\" including its steps and variables" , options : "--workflow-key \"7c62c790-0340-86b2-61ce618d8f8c\" --list-steps --list-variables" } , { description : "To list the details of an active workflow with name \"testWorkflow\" including its steps and variables" , options : "--workflow-name \"testWorkflow\" --list-steps --list-variables" } ] } ;