import { ICommandDefinition } from "@zowe/imperative" ; import { RetrieveWorkflowDefinitionCommonOptions } from "./RetrieveWorkflowDefinition.options" ; import { join } from "path" ; private export const RetrieveWorkflowDefinition = { name : "definition-file-details" , aliases : [ "dfd" ] , description : "Retrieve the contents of a z/OSMF workflow definition from a z/OS system." , type : "command" , handler : join ( __dirname , "./RetrieveWorkflowDefinition.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "definitionFilePath" , description : "Specifies the location of the workflow definition file, which is either a UNIX path name or a fully qualified z/OS data set name." , type : "string" , required : true } ] , options : ( [ RetrieveWorkflowDefinitionCommonOptions . listSteps , RetrieveWorkflowDefinitionCommonOptions . listVariables ] ) , examples : [ { description : "To list the contents of a workflow definition stored in the UNIX file \"/user/dir/workflow.xml\"" + " including its steps and variables" , options : "\"/user/dir/workflow.xml\" --list-steps --list-variables" } , { description : "To list the contents of a workflow definition stored in the z/OS data set \"USER.DATA.SET.XML\"" + " including its steps and variables" , options : "\"USER.DATA.SET.XML\" --list-steps --list-variables" } ] } ;