import { ICommandDefinition } from "@zowe/imperative" ; import { ZfsCreateOptions } from "./zfs.options" ; import { ZosFilesCreateOptions } from "../Create.options" ; import i18nTypings from "../../-strings-/en" ; const fileStrings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) ; const zfsStrings = fileStrings . CREATE . ACTIONS . ZFS ; export const ZfsDefinition = { name : "zos-file-system" , aliases : [ "zfs" ] , summary : zfsStrings . SUMMARY , description : zfsStrings . DESCRIPTION , type : "command" , handler : __dirname + "/zfs.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "fileSystemName" , type : "string" , description : zfsStrings . POSITIONALS . FILESYSTEMNAME , required : true } ] , options : [ ZfsCreateOptions . owner , ZfsCreateOptions . group , ZfsCreateOptions . perms , ZfsCreateOptions . cylsPri , ZfsCreateOptions . cylsSec , ZosFilesCreateOptions . storclass , ZosFilesCreateOptions . mgntclass , ZosFilesCreateOptions . dataclass , ZfsCreateOptions . volumes , ZfsCreateOptions . timeout ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : zfsStrings . EXAMPLES . DEFAULT_VALUES , options : "HLQ.MYNEW.ZFS" } , { description : zfsStrings . EXAMPLES . SPECIFY_CYLS , options : "HLQ.MYNEW.ZFS --cp 100 --cs 10" } , { description : zfsStrings . EXAMPLES . SPECIFY_VOLUMES , options : "HLQ.MYNEW.ZFS -v ZFS001 ZFS002" } ] } ;