import { AbstractSession , IHandlerParameters } from "@zowe/imperative" ; import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler" ; import { Rename , IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk" ; /**
 * Handler to rename a data set
 */ export default class DsHandler extends ZosFilesBaseHandler { public async processWithSession ( commandParameters , session ) { const { beforeDataSetName , afterDataSetName } = commandParameters . arguments ; return Rename . dataSet ( session , beforeDataSetName , afterDataSetName ) ; } }