import { ICommandDefinition } from "@zowe/imperative" ; import { join } from "path" ; import { DeleteWorkflowOptions } from "../deleteActiveWorkflow/DeleteActiveWorkflow.options" ; private export const DeleteActiveWorkflow = { name : "active-workflow" , aliases : [ "aw" ] , description : "Delete an active workflow instance in z/OSMF" , type : "command" , handler : join ( __dirname , "../Delete.common.handler" ) , profile : { optional : [ "zosmf" ] } , options : ( [ DeleteWorkflowOptions . workflowKey , 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.*\"" } ] } ;