import { ICommandDefinition } from "@zowe/imperative" ; import { ArchiveOptions } from "../Archive.options" ; import { join } from "path" ; private export const Workflow = { name : "active-workflow" , aliases : [ "aw" ] , description : "Archive an active workflow instance in z/OSMF." , type : "command" , handler : join ( __dirname , "../Archive.handler" ) , profile : { optional : [ "zosmf" ] } , options : ( [ ArchiveOptions . workflowName , ArchiveOptions . workflowKey ] ) , outputFormatOptions : true , examples : [ { description : "Archive a workflow with workflow name \"testworkflow\"" , options : "--wn \"testworkflow\" " } , { description : "Archive multiple workflows with workflow names starting with \"test\"" , options : "--wn \"test.*\" " } , { description : "Archive a workflow with workflow key \"123-456-abv-xyz\"" , options : "--wk \"123-456-abv-xyz\" " } ] } ;