RussBaz
(Russ)
1
Hi. Is there a reason why would anyone prefer one or the other approach? It seems to me that the latter is simpler as well as easier to run across OSes.
Thank you.
lukasa
(Cory Benfield)
2
Generally I'd prefer importing a library than calling a CLI binary via Process. It shouldn't be any more or less portable.
IMO Process is less portable, as it's unavailable on certain platforms or when certain forms of sandboxing are enabled.
2 Likes
RussBaz
(Russ)
4
Even if we are only using it in a Vapor project?