import { ICommandDefinition } from "@zowe/imperative" ; import { UssCreateOptions } from "./uss.options" ; import i18nTypings from "../../-strings-/en" ; const fileStrings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) ; const ussStrings = fileStrings . CREATE . ACTIONS . USSFILE ; export const UssFileDefinition = { name : "uss-file" , aliases : [ "file" ] , summary : ussStrings . SUMMARY , description : ussStrings . DESCRIPTION , type : "command" , handler : __dirname + "/ussFile.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "ussPath" , type : "string" , description : ussStrings . POSITIONALS . PATH , required : true } ] , options : [ UssCreateOptions . mode ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : ussStrings . EXAMPLES . CREATE_FILE , options : "text.txt" } , { description : ussStrings . EXAMPLES . SPECIFY_MODE , options : "text.txt -m rwxrwxrwx" } ] } ;