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

Reference external resources in config file #123

Merged
merged 3 commits into from
Nov 2, 2019
Merged

Reference external resources in config file #123

merged 3 commits into from
Nov 2, 2019

Conversation

karlch
Copy link
Owner

@karlch karlch commented Nov 2, 2019

Implements a custom configparser interpolation to allow referring to external resources via ${RESOURCE:variable}. Currently only ${env:VARIABLE} is implemented for environment variables, but extending is simple and can be used for #113.

The parser is set-up in a way that it updates values with external
resources. Variables are defined by the syntax `${PREFIX:variable}`.
Currently the only option is `${env:variable}` which is replaced by the
value of the environment variable $env. Extending the options is simple
and can be done in future versions.
This allows reading setting options as well as style options from
external resources. May be especially useful for setting the colors or
font in the style.
@karlch karlch merged commit b2b434b into master Nov 2, 2019
@karlch karlch deleted the customparser branch November 2, 2019 12:34
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

Successfully merging this pull request may close these issues.

None yet

1 participant