import { ICommandDefinition } from "@zowe/imperative" ; import { DownloadOptions } from "../Download.options" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . DOWNLOAD . ACTIONS . USS_FILE ; type { ICommandDefinition } export const UssFileDefinition = { name : "uss-file" , aliases : [ "uf" , "uss" ] , summary : strings . SUMMARY , description : strings . DESCRIPTION , type : "command" , handler : __dirname + "/UssFile.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "ussFileName" , description : strings . POSITIONALS . USSFILENAME , type : "string" , required : true } ] , options : [ DownloadOptions . file , DownloadOptions . binary , DownloadOptions . encoding ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . EXAMPLES . EX1 , options : `"/a/ibmuser/my_text.txt" -f ./my_text.txt` } , { description : strings . EXAMPLES . EX2 , options : `"/a/ibmuser/MyJava.class" -b -f "java/MyJava.class"` } ] } ;