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

Fallback values for variable expansion (":-" syntax) #21

Open
anuraaga opened this issue Mar 6, 2025 · 0 comments
Open

Fallback values for variable expansion (":-" syntax) #21

anuraaga opened this issue Mar 6, 2025 · 0 comments

Comments

@anuraaga
Copy link

anuraaga commented Mar 6, 2025

Is your feature request related to a problem? Please describe.

Currently only ${IDENTIFIER} is supported for variable expansion and we can't set a value to an existing var if set or fixed value if not set.

Describe the solution you'd like

Parse ${IDENTIFIER:-VALUE} and use VALUE when IDENTIFIER variable not set

Describe alternatives you've considered

Additional context

I understand supporting every single type of variable expansion may be too much for this tool but does it seem reasonable to support just :-, which from what I've seen is the most commonly used?

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