-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support for custom CLI parameters #936
Comments
Have currently the same problem and also did not find a better solution with multiple yaml files. |
We discussed inheritance between yaml files before and I still think it's an obvious solution when looking at current projects with 3+ yaml files all containing redundant information. So I'm all up for realizing that. Regarding custom CLI parameters I'm wondering how this would be different from using environment variables as described in #935? Instead of |
@RandomByte the idea of #935 is to have a consistent handling of env variables that the user explicitly declares in the yaml. The idea of this feature is that the middleware owner defines parameters that a user can use to overwrite yaml settings. Nevertheless, I agree, with #935 in place, using PS: what about my suggested alternative? Allow defining |
Alright, thanks for confirming 👍
I think inheritance between ui5.yaml configuration files should be a standard feature. And I expect this to be generally easy to implement in UI5 Tooling. I don't see why we should push this feature into the responsibility of individual project's configuration files. What do you think? Or is there something else you would like to solve as well using a |
One of my favorite middlewares (https://github.com/SAP/open-ux-odata/tree/main/packages/ui5-middleware-fe-mockserver) has a not well documented feature allowing to configure it using a js file. I use it heavily for test environments because I just drop With a |
Is your feature request related to a problem? Please describe.
When I need to run e.g.
ui5 serve
with different configurations, I am currently forced to create multipleui5*.yaml
files. In some cases, I need exactly the same configuration except one value is different. The overhead of maintaining multiple files for that is increasing the costs of maintaining a UI5 project.Describe the solution you'd like
Allow the usage of custom CLI parameters that are accessible in my middleware/task e.g. I would like to call
ui5 serve --debug --magic 42
and in my middleware I have access to e.g. this global configuration as e.g. objectDescribe alternatives you've considered
I could also solve the same problem, if it would also be possible to provide the configuration not as
yaml
but asjs
file. Then, I have all the flexibility needed to create inheritance between configs or custom creation of the config based on other parameters.Additional context
No
The text was updated successfully, but these errors were encountered: