import * as path from "path" ; import { ICommandDefinition } from "@zowe/imperative" ; import { UploadOptions } from "../Upload.options" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . UPLOAD . ACTIONS . DIR_TO_USS ; type { ICommandDefinition } export const DirToUSSDirDefinition = { name : "dir-to-uss" , aliases : [ "dtu" ] , summary : strings . SUMMARY , description : strings . DESCRIPTION , type : "command" , handler : path . join ( __dirname , "/DirToUSSDir.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "inputDir" , description : strings . POSITIONALS . INPUTDIR , type : "string" , required : true } , { name : "USSDir" , description : strings . POSITIONALS . USSDIR , type : "string" , required : true } ] , options : [ UploadOptions . binary , UploadOptions . recursive , UploadOptions . binaryFiles , UploadOptions . asciiFiles , UploadOptions . attributes , UploadOptions . maxConcurrentRequests ] , examples : [ { description : strings . EXAMPLES . EX1 , options : `"local_dir" "/a/ibmuser/my_dir"` } , { description : strings . EXAMPLES . EX2 , options : `"local_dir" "/a/ibmuser/my_dir" --recursive` } , { description : strings . EXAMPLES . EX3 , options : `"local_dir" "/a/ibmuser/my_dir" --binary-files "myFile1.exe,myFile2.exe,myFile3.exe"` } , { description : strings . EXAMPLES . EX4 , options : `"local_dir" "/a/ibmuser/my_dir" --binary --ascii-files "myFile1.txt,myFile2.txt,myFile3.txt"` } , { description : strings . EXAMPLES . EX5 , options : `"local_dir" "/a/ibmuser/my_dir" --recursive --attributes my_global_attributes` } ] } ;