import { ICommandDefinition } from "@zowe/imperative" ; import { join } from "path" ; import { DeleteArchivedWorkflowOptions } from "../deleteArchivedWorkflow/DeleteArchivedWorkflow.options" ; private export const DeleteArchivedWorkflow = { name : "archived-workflow" , aliases : [ "arw" ] , description : "Delete an archived workflow from z/OSMF" , type : "command" , handler : join ( __dirname , "../Delete.archived.common.handler" ) , profile : { optional : [ "zosmf" ] } , options : ( [ DeleteArchivedWorkflowOptions . workflowKey , DeleteArchivedWorkflowOptions . workflowName ] ) , examples : [ { description : "To delete an archived workflow from z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" , options : "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" } , { description : "To delete an archived workflow from z/OSMF with workflow name \"testWorkflow\"" , options : "--workflow-name \"testWorkflow\"" } , { description : "To delete multiple archived workflows from z/OSMF with names beginnig with \"test\"" , options : "--workflow-name \"test.*\"" } ] } ;