Is your feature request related to a problem? Please describe.
The current presets are nice, but I would like to be able to extend them.
Describe the solution you'd like
My current use case is getting a file name from the CLI, and I would like to specify this to be of :type :file. This :file preset is what I would like to be able to add, so that this argument will be parsed as File object or give an error. Of course, a general solution is desired for extending types.
Describe alternatives you've considered
I looked at the cli-matic source code to try and figure something out myself. But it seems it's relatively hard to extend this. Writing a preset function is easy, but you then have to update presets/known-presets and, the more cumbersome, ::type spec. And perhaps more, I'm not entirely confident I understood it all.
Is your feature request related to a problem? Please describe. The current presets are nice, but I would like to be able to extend them.
Describe the solution you'd like My current use case is getting a file name from the CLI, and I would like to specify this to be of
:type :file
. This:file
preset is what I would like to be able to add, so that this argument will be parsed asFile
object or give an error. Of course, a general solution is desired for extending types.Describe alternatives you've considered I looked at the cli-matic source code to try and figure something out myself. But it seems it's relatively hard to extend this. Writing a preset function is easy, but you then have to update
presets/known-presets
and, the more cumbersome,::type
spec. And perhaps more, I'm not entirely confident I understood it all.Version / Platform