import { ICommandDefinition } from "@zowe/imperative" ; export const SendToAddressSpaceCommandDefinition = { name : "address-space" , aliases : [ "as" ] , summary : "Send data to a TSO address space" , description : "Send data to the TSO address space, from which " + "you previously started and received a token (a.k.a 'servlet-key')." , type : "command" , handler : __dirname + "/SendToAddressSpace.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "servletKey" , type : "string" , description : "The servlet key from a previously started TSO address space." , required : true } ] , options : [ { name : "data" , required : true , description : "The data to which we want to send to the TSO address space represented " + "by the servlet key." , type : "string" } ] , examples : [ { description : `"Send the TIME TSO command to the TSO address space identified by IBMUSER-329-aafkaaoc"` , options : "IBMUSER-329-aafkaaoc --data \"TIME\"" } ] } ;