We shouldn't assume that endpoints.yaml always reside on the same level as the generated sources. It should be possible to generate sources in another directory.
Ways to consider:
- always put generated sources into
src/
- allow to specify a path to
endpoints.yaml so the users can do something like this: cd src; query2app ../endpoints.yaml and the source will be generated within a current directory
- introduce an option for the directory where to place source code:
query2app --dest-dir src or query2app --output-dir src
We shouldn't assume that
endpoints.yamlalways reside on the same level as the generated sources. It should be possible to generate sources in another directory.Ways to consider:
src/endpoints.yamlso the users can do something like this:cd src; query2app ../endpoints.yamland the source will be generated within a current directoryquery2app --dest-dir srcorquery2app --output-dir src