domoszlai / juicy-gcode

A lightweight SVG to GCode converter for maximal curve fitting
https://hackage.haskell.org/package/juicy-gcode
MIT License
110 stars 7 forks source link

Flavor as an application argument? #23

Open berkut0 opened 1 year ago

berkut0 commented 1 year ago

Hi! Is it possible to pass flavors as an argument? Not as a file, but as a straight parameter argument

domoszlai commented 1 year ago

no, it is too complex. also, it is YAML now, not sure how it could be serialized

berkut0 commented 1 year ago

Got it, thanks

berkut0 commented 1 year ago

It seems to me that configuration could be provided in "real time". I'm constructing the configuration in some sort of configurator and pushing that out to the application. And in this pipeline files feels a bit redundant. I think this problem is mostly for the Windows platform.

Maybe it's possible to pass not a file, but pure YAML in quotes instead of a file?

domoszlai commented 1 year ago

Not sure. Why would this be useful?

berkut0 commented 1 year ago

It's related to https://github.com/domoszlai/juicy-gcode/issues/24 It feels like to be great to have it as a pure CLI tool Now we should provide files, it's nice, but if I can feed pure SVG as input, maybe even a parts of SVGs, provide flavors as parameters and it can be easily and seamless integrated in very different scenarious

Maybe it's just a fantasy, and to be honest, not as necessary as I can imagine.