import { ICommandDefinition , ICommandOptionDefinition } from "@zowe/imperative" ; export const OutputDefinition = { name : "output" , aliases : [ "o" ] , type : "command" , summary : "Download all job output to a directory" , description : "Download all job output to a local directory. " + "Each spool DD will be downloaded to its own file in the directory." , handler : __dirname + "/Output.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "jobid" , description : "The z/OS JOBID of the job containing the spool files you want to view. " + "No pre-validation of the JOBID is performed." , type : "string" , required : true } ] , options : ( [ { name : "directory" , aliases : [ "d" , "dir" ] , description : "The local directory you would like to download the output for the job to." , type : "string" } , { name : "extension" , aliases : [ "e" ] , description : "A file extension to save the job output with. Defaults to '.txt'." , type : "string" } , { name : "omit-jobid-directory" , aliases : [ "ojd" ] , description : "If specified, job output will be saved directly to the specified " + "directory rather than creating a subdirectory named after the ID of the job." , type : "boolean" } ] as ICommandOptionDefinition [ ] ) , examples : [ { description : "Download all the output of the job with job ID JOB00234 to an automatically generated directory." , options : "JOB00234" } ] } ;