-
-
Notifications
You must be signed in to change notification settings - Fork 197
Own option #2548
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
Comments
Hey @vincentpalita , |
Hey @rosen-vladimirov , |
Hi @vincentpalita we have similar situation and here is hot we solve it: We use hooks, inside those hooks we read values from environment variables and replace placeholder some file which act the role of configuration. I don't believe passing options to CLI commands is good way to modify your app. |
Hi @dtopuzov thanks for your message. Well I don't really agree with you about the fact that it's not a good way to "modify your app" while passing options to CLI commands. It is currently a method used by numerous systems such as angular-cli with the argument --environment. We are not looking to "modify the app" but to change the configuration at startup and build. Thanks |
This would be a very nice feature. |
At the moment you can use
I'm closing this thread, feel free to reopen it in case you think the suggested solution is not applicable for your use case. |
@rosen-vladimirov @NathanWalker Can I pass custom variable in |
Hello,
I searched issues but didn't find anything about it.
I would like to be able to pass options that are not included in the nativescript-cli list.
Is it possible?
For example:
tns run ios --emulator --watch --environment=integration
As of now I get the following error:
The option 'environment' is not supported. To see command's options, use '$ tns help run'. To see all commands use '$ tns help'.
Thank you for your help,
Vincent
The text was updated successfully, but these errors were encountered: