go-go-golems / glazed

a library to make it easy to output structured data in your command line tools. add the icing on top of your data
MIT License
48 stars 4 forks source link

Add new declarative flag/argument/parameter types #117

Open wesen opened 1 year ago

wesen commented 1 year ago

It would be great to have more parameter types:

We currently have the following:

const (
    ParameterTypeString         ParameterType = "string"
    ParameterTypeStringFromFile ParameterType = "stringFromFile"
    // load structure from json/yaml/csv file
    ParameterTypeObjectFromFile ParameterType = "objectFromFile"
    ParameterTypeInteger        ParameterType = "int"
    ParameterTypeFloat          ParameterType = "float"
    ParameterTypeBool           ParameterType = "bool"
    ParameterTypeDate           ParameterType = "date"
    ParameterTypeStringList     ParameterType = "stringList"
    ParameterTypeIntegerList    ParameterType = "intList"
    ParameterTypeFloatList      ParameterType = "floatList"
    ParameterTypeChoice         ParameterType = "choice"
)
wesen commented 1 year ago