import { ICommandDefinition } from "@zowe/imperative" ; import { TSO_PROFILE_OPTIONS } from "../../constants/ZosTso.constants" ; export const AddressSpaceDefinition = { name : "address-space" , aliases : [ "as" ] , description : "Start a TSO address space, from which " + "you will receive a token (a.k.a 'servlet-key') for further address space interaction " + "(e.g. termination)." , type : "command" , handler : __dirname + "/AddressSpace.handler" , profile : { optional : [ "zosmf" , "tso" ] } , options : TSO_PROFILE_OPTIONS . concat ( [ { name : "servlet-key-only" , aliases : [ "sko" ] , description : "Specify this option to print only the servlet key" , type : "boolean" } ] ) , examples : [ { description : "Start TSO/E address space" , options : "" } , { description : "Start TSO/E address space, and receive response in JSON format" , options : "--rfj" } , { description : "Start TSO/E address space, and print only the servlet key" , options : "--sko" } ] } ;