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

Idiom for moving code #442

Open
morgante opened this issue Aug 5, 2024 · 0 comments
Open

Idiom for moving code #442

morgante opened this issue Aug 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@morgante
Copy link
Contributor

morgante commented Aug 5, 2024

Occasionally we want to move a node from one place to another.

Right now this often has to be done with text(). Ex.

language hcl

`resource "cloudflare_zone_cache_variants" $_ {
	$body
}` where {
    $body <: contains `zone_id = $_` as $zone,
    $zone_copy = text($zone),
    $zone => .,
    $body => `$zone_copy
    value = {
        $body
    }`
}
@morgante morgante added the enhancement New feature or request label Aug 5, 2024
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

No branches or pull requests

1 participant