import { IHandlerParameters } from "@zowe/imperative" ; import { CollectCommand , ICollectParms , IConsoleResponse } from "@zowe/zos-console-for-zowe-sdk" ; import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk" ; export class implements ICommandHandler export default class Handler extends ZosmfBaseHandler { public async processCmd ( commandParameters ) { const collectParms = { commandResponseKey : commandParameters . arguments . responsekey , consoleName : commandParameters . arguments [ "console-name" ] } ; const response = await CollectCommand . collect ( this . mSession , collectParms ) ; commandParameters . response . console . log ( response . commandResponse ) ; commandParameters . response . data . setObj ( response ) ; } }