Split CLI and aligning code to allow importing as a library
bradleyjkemp opened this issue · 2 comments
bradleyjkemp commented
Would be great to be able to import this as a library but currently that isn't possible because everything is package "main"
Guitarbum722 commented
Thanks for the suggestion, @bradleyjkemp! It's interesting; this started out as a lib and was later changed to be the CLI app only.
Out of curiosity, what would be a possible use case?
bradleyjkemp commented
So if I'm writing something that reads a CSV then it would be useful to import this as a library and use it as a pretty printer (and so not force the user to pipe my unformatted output into another tool)