FFIG / ffig

Generate code to call C++ libraries from other languages
MIT License
29 stars 9 forks source link

Provide a mechanism to list the available generators / templates #402

Open ajbennieston opened 6 years ago

ajbennieston commented 6 years ago

It would be useful to be able to do something like python -m ffig --list-generators to obtain a list of the registered generators, templates and template aliases.

This would be useful in a number of situations, including

In order to support these use cases, in particular the REST API, the functionality to implement this should be exposed as a Python function in the ffig package, as well as via a command-line argument when FFIG is invoked as the main executable.

Some complications:

Sub-tasks

ajbennieston commented 6 years ago

PR #403 includes support for descriptions for generators and a list function within the GeneratorContext class.