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 . FILE_TO_USS ; type { ICommandDefinition } export const FileToUSSDefinition = { name : "file-to-uss" , aliases : [ "ftu" ] , description : strings . DESCRIPTION , type : "command" , handler : path . join ( __dirname , "/FileToUSS.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "inputfile" , description : strings . POSITIONALS . INPUTFILE , type : "string" , required : true } , { name : "USSFileName" , description : strings . POSITIONALS . USSFILENAME , type : "string" , required : true } ] , options : [ UploadOptions . binary , UploadOptions . encoding ] , examples : [ { description : strings . EXAMPLES . EX1 , options : `"file.txt" "/a/ibmuser/my_text.txt"` } ] } ;