import { ICommandDefinition } from "@zowe/imperative" ; import { join } from "path" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . DELETE . ACTIONS . USS ; private export const UssDefinition = { name : "uss-file" , aliases : [ "uf" , "uss" ] , description : strings . DESCRIPTION , type : "command" , handler : join ( __dirname , "Uss.handler" ) , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "fileName" , type : "string" , description : strings . POSITIONALS . FILENAME , required : true } ] , options : ( [ { name : "for-sure" , aliases : [ "f" ] , description : strings . OPTIONS . FOR_SURE , type : "boolean" , required : true } , { name : "recursive" , aliases : [ "r" ] , description : strings . OPTIONS . RECURSIVE , type : "boolean" , required : false } ] ) , examples : [ { description : strings . EXAMPLES . EX1 , options : `"/a/ibmuser/testcases" -f` } , { description : strings . EXAMPLES . EX2 , options : `"/a/ibmuser/testcases/my_text.txt" -f` } , { description : strings . EXAMPLES . EX3 , options : `"/a/ibmuser/testcases" -rf` } ] } ;