import { IHandlerParameters } from "@zowe/imperative" ; import { ListDefinedSystems , IZosmfListDefinedSystemsResponse , ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk" ; export class implements ICommandHandler export default class Handler extends ZosmfBaseHandler { public async processCmd ( commandParameters ) { const zosResponse = await ListDefinedSystems . listDefinedSystems ( this . mSession ) ; commandParameters . response . format . output ( { fields : [ "systemNickName" , "systemName" , "url" , "jesMemberName" ] , output : zosResponse . items , format : "table" , header : true } ) ; commandParameters . response . data . setObj ( zosResponse ) ; } }