import { IHandlerParameters } from "@zowe/imperative" ; import { IPingResponse , PingTso , ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk" ; export class implements ICommandHandler export default class Handler extends ZosTsoBaseHandler { public async processCmd ( commandParameters ) { const response = await PingTso . ping ( this . mSession , commandParameters . arguments . servletKey ) ; commandParameters . response . console . log ( "TSO address space pinged successfully, key was: " + response . servletKey ) ; commandParameters . response . data . setObj ( response ) ; } }