Closed wsp-mbuckley closed 8 months ago
I'm all for this idea - would make ad-hoc translations much easier to do.
I think we'd like the option for both config and CLI args. If the args defaulted to whatever CAF.space chucks out, and the output location defaults to the current working directory then you could get away with:
Add a
__main__.py
entry point script which can provide a simple command-line interface. Initially I think it would be good to add a translation sub-command which allows people to run zone translations in as simple a way as possible.__main__.py
withargparser
setup to handle sub-commandsTranslate sub-command would need the following parameters:
Given the number of parameters it might make more sense to have those be a config and just pass the path to a config as the argument? Also it might make sense to split the sub-command into 2 separate ones one for vector translate and one for matrix translate, because matrix translate might want a format parameter to handle both wide and long formats.