import { ICommandDefinition , ICommandOptionDefinition } from "@zowe/imperative" ; export const JobsDefinition = { name : "jobs" , aliases : [ "js" ] , summary : "List z/OS jobs on JES spool/queues" , description : "List jobs on JES spool/queues. " + "By default, the command lists jobs owned (owner) by the user specified in your z/OSMF profile." + " The default for prefix is \"*\". " + "The command does not prevalidate your user ID. " + "The command surfaces errors verbatim from the z/OSMF Jobs REST endpoints." , type : "command" , handler : __dirname + "/Jobs.handler" , options : ( [ { name : "owner" , aliases : [ "o" ] , description : "Specify the owner of the jobs you want to list. " + "The owner is the individual/user who submitted the job OR the user ID assigned to the job. " + "The command does not prevalidate the owner. " + "You can specify a wildcard according to the z/OSMF Jobs REST endpoint documentation, " + "which is usually in the form \"USER*\"." , type : "string" } , { name : "prefix" , aliases : [ "p" ] , description : "Specify the job name prefix of the jobs you want to list. " + "The command does not prevalidate the owner. " + "You can specify a wildcard according to the z/OSMF Jobs REST endpoint documentation, " + "which is usually in the form \"JOB*\"." , type : "string" } ] as ICommandOptionDefinition [ ] ) , profile : { optional : [ "zosmf" ] } , examples : [ { options : "" , description : "List all jobs with default settings." + " The command returns jobs owned by your user ID with any job name" } , { options : "-o \"ibmu*\" -p \"myjo*\"" , description : "List all jobs owned by user IDs starting with 'ibmu' and job names starting with 'myjo'" } , { options : "--rff jobid --rft table" , description : "List all jobs with default owner and prefix settings, displaying only the job ID of each job" } ] , outputFormatOptions : true } ;