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

Add ~/, $VAR, and %VAR% support #16

Merged
merged 3 commits into from
May 21, 2022
Merged

Add ~/, $VAR, and %VAR% support #16

merged 3 commits into from
May 21, 2022

Conversation

corytodd
Copy link
Owner

This adds support for config file paths and contents that use ~/ and environmental variables. Note that
we only support one level of nesting for variables. We could support nested variables but that's more
work that I want to commit to this at the moment.

This also cleans up some exception handling so the user experience is slightly better in cases of bad
configuration entries.

corytodd added 2 commits May 21, 2022 14:42
Add support for ~/, $VAR, and %VAR% style shorthand in configuration
file path and configuration file RepositoryRoot paths.
We now support expanding vars and have test coverage for the new
features.
We have to create special data for Unix vs Windows platforms for the
PathHelper tests.
@corytodd corytodd merged commit 08cc99d into main May 21, 2022
@corytodd corytodd deleted the expand_env_vars branch May 21, 2022 23:38
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.

1 participant