-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQ] Provide templating authoring details in config-help or generate CLI command (or subcommands of generate) #1811
Comments
Vendor Extensions, Supporting Files may make more sense as a I've output most of the details for modifying a generator via config help changes in #4941. These options (primitives, import/instantiation mapping) make sense as part of config-help because they are CLI options which may need to be modified to generate valid code, especially for specs users don't control. Authoring details may make more sense as its own command. Authoring is a more advanced option which might require viewing or dumping template files for a given generator+library combination, with instructions for modifying the template. This could get hairy because some generators switch on options provided to the I wonder if it may make more sense to create "subcommand" for the
If we go the subcommand route, we could also consider having
I don't know if airline supports group options, though. |
See also #4976 |
Feature set documentation is available via #4941 and #5188 Additional things I'd like to explore for this feature:
|
Is your feature request related to a problem? Please describe.
Yes. The barrier to entry for authoring templates or custom generators should be minimized.
Describe the solution you'd like
config-help should provide some options for displaying more than CLI-only generation flags.
Examples:
--authoring
=> could provide the embeddedTemplateDir as this isn't always the same as the generator name--extensions
=> could provide a list of vendor extensions for the generator--supporting-files
=> could provide a list of the supporting files.--features
=> could list the features supported by the generator (OAuth, JSON/XML, API Key, etc)Describe alternatives you've considered
We could create a new CLI command, but that seems to add little value over one or more additional switches.
Additional context
I think any additional information should be hidden by default. That is, authoring and extension information shouldn't display when
config-help
is called for a generator without the additional switches. This is because some of our generators have a ton of options, and there's no need to crowd the terminal output.The
--supporting-files
might be non-trivial because many generators conditionally add supporting files based on CLI options passed to the generator. I think we would need to update generators to "register" supporting files and associate them to the options which would lead to those files being generated.The generated output could eventually be used to generate parts of our documentation (see #1770).
The text was updated successfully, but these errors were encountered: