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_DATA_SET ; type { ICommandDefinition } export const FileToDataSetDefinition = { name : "file-to-data-set" , aliases : [ "ftds" ] , description : strings . DESCRIPTION , type : "command" , handler : path . join ( __dirname , "/FileToDataSet.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "inputfile" , description : strings . POSITIONALS . INPUTFILE , type : "string" , required : true } , { name : "dataSetName" , description : strings . POSITIONALS . DATASETNAME , type : "string" , required : true } ] , options : [ UploadOptions . volume , UploadOptions . binary , UploadOptions . recall , UploadOptions . encoding ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . EXAMPLES . EX1 , options : `"file.txt" "ibmuser.ps"` } , { description : strings . EXAMPLES . EX2 , options : `"file.txt" "ibmuser.pds(mem)"` } , { description : strings . EXAMPLES . EX3 , options : `"file.txt" "ibmuser.ps" --mr wait` } ] } ;