-
Notifications
You must be signed in to change notification settings - Fork 500
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
Allow defining private variables #2299
Comments
Thanks for the report! Can you give an example of how a user redefining a variable would be a problem? I want to make sure I understand the use-case. I think allowing |
The requested feature would also be useful to reduce clutter in |
My implementation above specifically doesn't filter out private assignments on evaluation since that's useful information. I think you're right that it would be useful to filter them out by default and have an extra flag to flip that behavior. I'll see if I can implement that today |
Often, I need to define variables that are built from a smaller set of fundamental settings/variables. It would be useful to allow
[private]
to work on variables such that they can't be defined by the user of the script. Alternatively, the_
prefix could also be used such thatjust --variables
avoids listing them.Happy to work on a PR if this is something that will be accepted
The text was updated successfully, but these errors were encountered: