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

Have a way to use relative path / project path in environment MIRRORD_CONFIG_FILE #310

Open
aviramha opened this issue Dec 16, 2024 · 5 comments

Comments

@aviramha
Copy link
Member

No description provided.

@Razz4780
Copy link
Contributor

We can:

  1. Pass project root dir as env variable. This way it will be usable via tera, like get_env(PROJECT_ROOT_DIR)
  2. Pass the path to the CLI internally and expose it to tera as a custom function. This way it will be usable under its own name, like project_path()

@aviramha
Copy link
Member Author

but I want users to be able to do
MIRRORD_CONFIG_FILE=$ProjectPath/lala/mirrord.json

@Razz4780
Copy link
Contributor

Ah right. Ok, I guess we can just allow for ... prefix and handle it in the plugin code. Shouldn't be hard

Copy link
Member Author

butbut I hate the …

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

2 participants