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: Options and Parameters Expressed as Environment Variables #37

Open
osterman opened this issue Nov 25, 2020 · 1 comment

Comments

@osterman
Copy link

what

  • Allow any option or parameter to be optionally expressed as an environment variable like in variant1

why

  • so we can set the base path of our configurations without needing to pass the parameter every time (kind of like the way variant2 uses the VARIANT_DIR), we want to set our own CONFIG_DIR which corresponds to the --config-dir parameter.
@osterman
Copy link
Author

Actually, this should just work:

option "config-dir" {
  default     = coalesce(getenv("CONFIG_DIR"), "./stacks")
  description = "Stacks config directory"
  type        = string
}

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