import { ICommandDefinition , ICommandOptionDefinition } from "@zowe/imperative" ; import { TSO_PROFILE_OPTIONS } from "../../constants/ZosTso.constants" ; export const CommandDefinition = { name : "command" , aliases : [ "cmd" ] , summary : "Issue a TSO command" , description : "Creates a TSO address space, issues a TSO command through the newly created address space, " + "waits for the READY prompt to print the response, and terminates the TSO address space. All response data" + " are returned to the user up to (but not including) the TSO 'READY' prompt." , type : "command" , handler : __dirname + "/Command.handler" , profile : { optional : [ "zosmf" , "tso" ] } , positionals : [ { name : "commandText" , type : "string" , description : "The TSO command to issue." , required : true } ] , options : ( [ { name : "suppress-startup-messages" , aliases : [ "ssm" ] , type : "boolean" , description : "Suppress console messages from start of address space." } ] as ICommandOptionDefinition [ ] ) . concat ( TSO_PROFILE_OPTIONS ) , examples : [ { description : 'Issue the TSO command "status" to display information about jobs for your user ID.' , options : "\"status\"" } ] } ;