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

Add '!join' tag to config parser #991

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yarcod-zpt
Copy link

When dealing with, e.g., paths in a configuration file, it is not uncommon to want to perform a join operation on two values in order to keep the config file 'DRY'. By adding a !join tag to the config parser, you can join one previously defined value in the invoke.yaml file with another. For example:

base: &BASE /home/root/
app: !join [*BASE, my_app/]
settings: !join [*BASE, settings]

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

Successfully merging this pull request may close these issues.

1 participant