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 - Support Decode for env var init #277

Closed
sagiegurari opened this issue Aug 19, 2019 · 0 comments
Closed

Feature - Support Decode for env var init #277

sagiegurari opened this issue Aug 19, 2019 · 0 comments
Assignees
Milestone

Comments

@sagiegurari
Copy link
Owner

Features Description
To enable defining env vars based on value mapping of other env vars, need to introduce a decode env capability.

Describe the solution you'd like
We could define the source value which can be an expression holding env vars and text, a value to value mappings and a default value.

Code Sample

[env]
PLATFORM_EXTERNAL_EXT_SUFFIX={decode={source = "${CARGO_MAKE_RUST_TARGET_OS}", default = "", mapping = {"linux" = "so", "macos" = "dylib", "windows" = "dll", "openbsd" = "so"}}}

see discussion at #275

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

1 participant