import { ICommandDefinition , ICommandOptionDefinition } from "@zowe/imperative" ; import { join } from "path" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . DELETE . ACTIONS . DATA_SET ; private export const DsDefinition = { name : "data-set" , aliases : [ "ds" ] , description : strings . DESCRIPTION , type : "command" , handler : join ( __dirname , "Ds.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "dataSetName" , type : "string" , description : strings . POSITIONALS . DSNAME , required : true } ] , options : ( [ { name : "for-sure" , aliases : [ "f" ] , description : strings . OPTIONS . FOR_SURE , type : "boolean" , required : true } , { name : "volume" , aliases : [ "vol" ] , description : strings . OPTIONS . VOLUME , type : "string" } ] as ICommandOptionDefinition [ ] ) . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . EXAMPLES . EX1 , options : `"ibmuser.cntl" -f` } , { description : strings . EXAMPLES . EX2 , options : `"ibmuser.cntl(mem)" -f` } ] } ;