Closed MattiSG closed 8 years ago
I agree!
Done in generator-swaggerize@1.0.0-rc.3
(see readme)
Re-opening because it still requires user interaction. I'll add a prompt skip option.
It would also be nice to have an extra parameter in the CLI and be able to point to an relative output where the handlers themselves will be generated, and also, prevent the generator in creating the handler folder itself.
Please check the latest version generator-swaggerize@3.0.0
. This should be resolved.
CLI Options : https://github.com/krakenjs/generator-swaggerize#cli-options
--apiPath
- specify the path to the swagger document.
--handlerPath
- specify the path to generate the handler files. By default handlers directory.
It would be great if I was able to pass the generator an option for the input swagger document, so I can add an NPM script to update in a single command.
Example:
Note: the
--framework=hapi
option is linked to #16.