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 multi-line var support #49

Closed
kapodes opened this issue Jun 11, 2022 · 1 comment · Fixed by #48
Closed

Add multi-line var support #49

kapodes opened this issue Jun 11, 2022 · 1 comment · Fixed by #48
Assignees
Labels
enhancement New feature or request

Comments

@kapodes
Copy link
Collaborator

kapodes commented Jun 11, 2022

Currently #var can only support one line keys. So same long prefix yaml paths have to be copied multiple times.

#var foo.bar.baz: 123
#var foo.bar.bas: 456

it would be nice to add native yaml multi-line support for yaml.

@kapodes
Copy link
Collaborator Author

kapodes commented Jun 11, 2022

Adding new @var syntax that supports multi-line notation. So example from issue becomes

@var:
  foo:
    bar:
      baz: 123
      bas: 456

this notation adds 2 properties to context that can be then referenced by placeholders as usual.

keyBaz: ${component-name@foo.bar.baz}
keyBas: ${component-name@foo.bar.bas}

@kapodes kapodes linked a pull request Jun 11, 2022 that will close this issue
@kapodes kapodes self-assigned this Jun 11, 2022
@alxmatorin alxmatorin added the enhancement New feature or request label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants