Skip to content
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

Top level preferences for applications #65

Open
3f6a opened this issue Feb 28, 2024 · 0 comments
Open

Top level preferences for applications #65

3f6a opened this issue Feb 28, 2024 · 0 comments

Comments

@3f6a
Copy link

3f6a commented Feb 28, 2024

I think it would be nice to be able to set preferences for Applications (as opposed to packages). Could that make sense?

Since Applications do not have name or uuids (not necessarily), these preferences could be stored at the top level of the LocalPreferences.toml file, and be associated to the current leaf project. We could set/get them by unqualified set_preferences!(key => value) and get_preferences(key) (without having to specify UUID or a package name).

APP_KEY1 = "value1" # current app preferences

[PkgA] # package specific preferences
CONF_PKG_A_KEY1 = "abc"

# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant