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

hclext: Add AsNative helper #170

Merged
merged 1 commit into from
Jul 18, 2022
Merged

hclext: Add AsNative helper #170

merged 1 commit into from
Jul 18, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Jul 18, 2022

This PR adds AsNative() helper to hclext.Attributes and hclext.Attribute. This translates to hcl.Attribute with the equivalent structure. This transformation is useful when passing hcl.Attribute to a function that takes it as an argument.

Note that hclext.Blocks does not have the equivalent functionality. This is because the hcl.Body of hcl.Blocks cannot be reproduced.

@wata727 wata727 merged commit 28c5530 into master Jul 18, 2022
@wata727 wata727 deleted the as_native_attributes branch July 18, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant