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 . VSAM ; private export const VsamDefinition = { name : "data-set-vsam" , aliases : [ "vsam" ] , description : strings . DESCRIPTION , type : "command" , handler : join ( __dirname , "Vsam.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 : "erase" , aliases : [ "e" ] , description : strings . OPTIONS . ERASE , type : "boolean" , defaultValue : false } , { name : "purge" , aliases : [ "p" ] , description : strings . OPTIONS . PURGE , type : "boolean" , defaultValue : false } ] as ICommandOptionDefinition [ ] ) . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . EXAMPLES . EX1 , options : `"ibmuser.cntl.vsam" -f` } , { description : strings . EXAMPLES . EX2 , options : `"ibmuser.AAA.**.FFF" -f` } , { description : strings . EXAMPLES . EX3 , options : `"ibmuser.cntl.vsam" -f --purge` } , { description : strings . EXAMPLES . EX4 , options : `"ibmuser.cntl.vsam" -f --erase` } ] } ;