krieselreihe / litr

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.
MIT License
8 stars 0 forks source link

Should there be type validation or is everything a string #8

Open MartinHelmut opened 3 years ago

MartinHelmut commented 3 years ago

For parameters there is currently a type option for parameter validation. This has many implication on how this should be validated, what types are supported and can this be influenced by the user? Currently there could be support for: string, integer, float, number (combination of integer and float). But then what about more specific types like "date", "url" and n-more types. The alternative could be that every parameter is a string for now. This will result in less issues and less thinking for the user.

MartinHelmut commented 3 years ago

For now the only types are: string and and array of options as strings.

MartinHelmut commented 3 years ago

The type boolean was added naturally on implementing the script interpreter.