import { ICommandDefinition } from "@zowe/imperative" ; import { FsMountOptions } from "./fs.options" ; import i18nTypings from "../../-strings-/en" ; const fileStrings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) ; const fsStrings = fileStrings . MOUNT . ACTIONS . FS ; export const FsDefinition = { name : "file-system" , aliases : [ "fs" ] , summary : fsStrings . SUMMARY , description : fsStrings . DESCRIPTION , type : "command" , handler : __dirname + "/fs.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "fileSystemName" , type : "string" , description : fsStrings . POSITIONALS . FILESYSTEMNAME , required : true } , { name : "mountPoint" , type : "string" , description : fsStrings . POSITIONALS . MOUNTPOINT , required : true } ] , options : [ FsMountOptions . fsType , FsMountOptions . mode ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : fsStrings . EXAMPLES . EX1 , options : "MY.ZFS /a/ibmuser/mountdir" } , { description : fsStrings . EXAMPLES . EX2 , options : "MY.HFS /a/ibmuser/mountdir --ft HFS -m rdwr" } ] } ;