I needed to have the ability to redirect the SVG output to a command-line-provided location (because the Nix store is immutable and I can't write there if I'm cd-ed into there). I added a separate flag that works with every subcommand.
The code doesn't actually implement writing SVG files to stdout. This page mentions how one would go about writing an SVG file to memory (such that it could be printed to stdout afterwards) but I'm not even remotely at a level of Haskell understanding required to execute on it. So I'm leaving that as a hard error for now.
plz revue and fix bad haskell code (i've never programmed in haskell truth be told!!) owu <3
I needed to have the ability to redirect the SVG output to a command-line-provided location (because the Nix store is immutable and I can't write there if I'm
cd
-ed into there). I added a separate flag that works with every subcommand.The code doesn't actually implement writing SVG files to stdout. This page mentions how one would go about writing an SVG file to memory (such that it could be printed to stdout afterwards) but I'm not even remotely at a level of Haskell understanding required to execute on it. So I'm leaving that as a hard error for now.
plz revue and fix bad haskell code (i've never programmed in haskell truth be told!!) owu <3