import { ICommandDefinition } from "@zowe/imperative" ; import { DownloadOptions } from "../Download.options" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . DOWNLOAD . ACTIONS . DATA_SET ; type { ICommandDefinition } export const DatasetDefinition = { name : "data-set" , aliases : [ "ds" ] , summary : strings . SUMMARY , description : strings . DESCRIPTION , type : "command" , handler : __dirname + "/Dataset.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "dataSetName" , description : strings . POSITIONALS . DATASETNAME , type : "string" , required : true } ] , options : [ DownloadOptions . volume , DownloadOptions . file , DownloadOptions . extension , DownloadOptions . binary , DownloadOptions . preserveOriginalLetterCase , DownloadOptions . encoding ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . EXAMPLES . EX1 , options : `"ibmuser.loadlib(main)" -b -f main.obj` } ] } ;