Generate Handlers (gx gen handler)
gx gen handler [-hMV] [-c[=<YAML config>]] <path> <className> <methodName>
gx gen handler
generates an action handler file, for the given class and method name, in the given path. If the given class already exists, the method is added to it.
By default, all generated code is printed to stdin. To have gx create or modify the files themselves, refer to the --modify
flag.
Parameters
1. Path
Path to the class file
2. Class Name
Name of the class file
3. Method Name
Name of the method
Options
1. --modify
--modify
Edit existing files.
By default, all output for gx gen
is printed out to the console. In order to have gx create, modify or edit existing files, use this flag.
Use this with caution on existing files as comments and formatting could possibly be changed.
Last updated