import { ICommandDefinition } from "@zowe/imperative" ; import { CreateCommonOptions } from "../Create.common.options" ; import { join } from "path" ; private export const LocalFile = { name : "workflow-from-local-file" , aliases : [ "wflf" ] , description : "Create a z/OSMF workflow on a z/OS system using a Local file" , type : "command" , handler : join ( __dirname , "../Create.common.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "workflowName" , type : "string" , description : "Name of the workflow" , required : true } ] , options : ( [ CreateCommonOptions . localFile , CreateCommonOptions . systemName , CreateCommonOptions . owner , CreateCommonOptions . inputFile , CreateCommonOptions . variables , CreateCommonOptions . assignToOwner , CreateCommonOptions . accessType , CreateCommonOptions . deleteCompleted , CreateCommonOptions . overwrite , CreateCommonOptions . remoteDirectory , CreateCommonOptions . keepFiles ] ) , outputFormatOptions : true , examples : [ { description : "Create a workflow with name \"testworkflow\" using the local file \"TESTID_WKFLOW.xml\" that contains the workflow " + "definition xml on the system \"TESTM1\" with owner \"OTHERID\" and delete workflow with the same name if it already exist in z/OSMF" , options : "\"testworkflow\" --local-file \"TESTID_WKFLOW.xml\" --system-name \"TESTM1\" --owner \"OTHERID\" --overwrite" } ] } ;