Command Line Interface
Generating code
Up until now, we’ve been developing the code we need to generate code. Now it’s time to wrap that code in a easy to use function to use as a command line interface. This cli will mirror the args of this function so:
- it accepts an xml file path as input
- it accepts a template directory as an input
Also, when a certain template does not exist, it will create one with a default template Renderer.DEFAULT_TEMPLATE
.
<Group main> (*args:Any, **kwargs:Any)
<Command render> (*args:Any, **kwargs:Any)