import { ICommandDefinition } from "@zowe/imperative" ; import { ZosFilesCreateExtraOptions , ZosFilesCreateOptions } from "../Create.options" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . CREATE ; type { ICommandDefinition } export const DsDefinition = { name : "data-set" , aliases : [ "ds" ] , description : strings . ACTIONS . DATA_SET_LIKE . DESCRIPTION , type : "command" , handler : __dirname + "/ds.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "dataSetName" , type : "string" , description : strings . POSITIONALS . DATASETNAME , required : true } ] , options : [ ZosFilesCreateExtraOptions . size , ZosFilesCreateOptions . volser , ZosFilesCreateOptions . primary , ZosFilesCreateOptions . secondary , ZosFilesCreateOptions . dirblk , ZosFilesCreateOptions . recfm , ZosFilesCreateOptions . blksize , ZosFilesCreateOptions . lrecl , ZosFilesCreateOptions . storclass , ZosFilesCreateOptions . mgntclass , ZosFilesCreateOptions . dataclass , ZosFilesCreateOptions . unit , ZosFilesCreateOptions . dsntype , ZosFilesCreateExtraOptions . showAttributes , ZosFilesCreateExtraOptions . like ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . ACTIONS . DATA_SET_LIKE . EXAMPLES . EX1 , options : "NEW.DATASET --like EXISTING.DATASET" } , { description : strings . ACTIONS . DATA_SET_LIKE . EXAMPLES . EX2 , options : "NEW.DATASET --like EXISTING.DATASET --lrecl 1024" } , { description : strings . ACTIONS . DATA_SET_LIKE . EXAMPLES . EX3 , options : "NEW.DATASET --data-set-type LIBRARY" } ] } ;