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

feature request: multiple include directories #101

Open
amlucas opened this issue Jan 29, 2018 · 4 comments
Open

feature request: multiple include directories #101

amlucas opened this issue Jan 29, 2018 · 4 comments

Comments

@amlucas
Copy link

amlucas commented Jan 29, 2018

If I understand correctly, only one include directory can be set at the time.
Would it be possible to add more include directories such that when I add @include "file.cfg" it would be looked up inside any of these directories?

@hyperrealm
Copy link
Owner

That would require some changes to implement an include path (like in a compiler). But you could probably work around it with the existing API by making a custom include function, and have it read the list of include directories from an environment variable, for example.

@CasperWu
Copy link

Do you have a plan to add this enhancement. This feature is very use full. For example, I may have the following config file, a.config is in /etc/ and b.config is in /opt/, so, i want to add both of "/etc/" and "/opt/" in the "include directories".

@include a.config
@include b.config

name = "hyperrealm"

@ghost
Copy link

ghost commented Dec 11, 2020

Well, I don't see a need for it. You can simply use symbolic links.

@CasperWu
Copy link

Well, I don't see a need for it. You can simply use symbolic links.

cool. thx for the response.

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

No branches or pull requests

3 participants