import { AbstractSession , IHandlerParameters , ITaskWithStatus , TaskStage } from "@zowe/imperative" ; import { IZosFilesResponse , Download } from "@zowe/zos-files-for-zowe-sdk" ; import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler" ; export export default class AllMembersHandler extends ZosFilesBaseHandler { public async processWithSession ( commandParameters , session ) { const status = { statusMessage : "Downloading all members" , percentComplete : 0 , stageName : TaskStage . IN_PROGRESS } ; commandParameters . response . progress . startBar ( { task : status } ) ; return Download . allMembers ( session , commandParameters . arguments . dataSetName , { volume : commandParameters . arguments . volumeSerial , binary : commandParameters . arguments . binary , encoding : commandParameters . arguments . encoding , directory : commandParameters . arguments . directory , extension : commandParameters . arguments . extension , maxConcurrentRequests : commandParameters . arguments . maxConcurrentRequests , preserveOriginalLetterCase : commandParameters . arguments . preserveOriginalLetterCase , failFast : commandParameters . arguments . failFast , task : status , responseTimeout : commandParameters . arguments . responseTimeout } ) ; } }