Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Investigate whether we can use functions directly without the path #98

Closed
muvaf opened this issue Oct 8, 2021 · 1 comment
Closed
Assignees
Labels
beta enhancement New feature or request

Comments

@muvaf
Copy link
Member

muvaf commented Oct 8, 2021

What problem are you facing?

resource.Configuration object accepts all functions with their global path and then during generation it uses the path to print. This is a must for reference generation since all terrajet does is to write the path as comment to the field but we might be able to use the functions directly.

How could Terrajet help solve your problem?

We can look into how we can use resource.Configuration in runtime to access the functions directly so that we get development time errors for signatures and automatic changes by IDE, essentially having it strong-typed. It's not a big deal since we see the problems once generated but dealing with strings is more error prone compared to Go language syntax.

@muvaf muvaf added enhancement New feature or request beta labels Oct 8, 2021
@muvaf muvaf self-assigned this Oct 22, 2021
@muvaf
Copy link
Member Author

muvaf commented Oct 22, 2021

We have started switching to using functions directly starting with #124

@muvaf muvaf closed this as completed Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant