import { IHandlerParameters } from "@zowe/imperative" ; import { StopTso , ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk" ; export default class Handler extends ZosTsoBaseHandler { public async processCmd ( commandParameters ) { const servletKey = commandParameters . arguments . servletkey ; const response = await StopTso . stop ( this . mSession , servletKey ) ; commandParameters . response . console . log ( `TSO address space ended successfully, key was: ${ response . servletKey }` ) ; commandParameters . response . data . setObj ( response ) ; } }