import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler" ; import { AbstractSession , IHandlerParameters , ITaskWithStatus , TaskStage } from "@zowe/imperative" ; import { Download , IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk" ; export export default class UssFileHandler extends ZosFilesBaseHandler { public async processWithSession ( commandParameters , session ) { const task = { percentComplete : 0 , statusMessage : "Downloading USS file" , stageName : TaskStage . IN_PROGRESS } ; commandParameters . response . progress . startBar ( { task } ) ; return Download . ussFile ( session , commandParameters . arguments . ussFileName , { binary : commandParameters . arguments . binary , encoding : commandParameters . arguments . encoding , file : commandParameters . arguments . file , task , responseTimeout : commandParameters . arguments . responseTimeout } ) ; } }