import { ICommandDefinition , ICommandOptionDefinition } from "@zowe/imperative" ; import { join } from "path" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . COPY . ACTIONS . DATA_SET ; type { ICommandDefinition } export const DsDefinition = { name : "data-set" , aliases : [ "ds" ] , description : strings . DESCRIPTION , type : "command" , handler : join ( __dirname , "Ds.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "fromDataSetName" , type : "string" , description : strings . POSITIONALS . FROMDSNAME , required : true } , { name : "toDataSetName" , type : "string" , description : strings . POSITIONALS . TODSNAME , required : true } ] , options : ( [ { name : "replace" , aliases : [ "rep" ] , description : strings . OPTIONS . REPLACE , type : "boolean" } ] as ICommandOptionDefinition [ ] ) . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . EXAMPLES . EX1 , options : `"USER.FROM.SET" "USER.TO.SET"` } , { description : strings . EXAMPLES . EX2 , options : `"USER.FROM.SET(mem1)" "USER.TO.SET(mem2)"` } , { description : strings . EXAMPLES . EX3 , options : `"USER.FROM.SET" "USER.TO.SET(mem2)"` } , { description : strings . EXAMPLES . EX4 , options : `"USER.FROM.SET(mem1)" "USER.TO.SET"` } , { description : strings . EXAMPLES . EX5 , options : `"USER.FROM.SET" "USER.TO.SET" --replace` } ] } ;