mirror of https://github.com/databricks/cli.git
788ec81785
## Changes We plan to use the any-equivalent of a `dyn.Value` such that we can use variable references for non-string fields (e.g. `${databricks_job.some_job.id}` where an integer is expected), as well as properly emit zero values for primitive types (e.g. 0 for integers or false for booleans). This change is in preparation for the above. ## Tests Unit tests. |
||
---|---|---|
.. | ||
generator | ||
schema | ||
templates | ||
.gitignore | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go |
README.md
Use this tool to generate equivalent Go types from Terraform provider schema.
Usage
The entry point for this tool is .
.
It uses ./tmp
a temporary data directory and ../schema
as output directory.
It automatically installs the Terraform binary as well as the Databricks Terraform provider.
Run with:
go run .
How to regenerate Go structs from an updated terraform provider?
- Bump version in ./schema/version.go
- Delete
./tmp
if it exists - Run
go run .
- Run
gofmt -s -w ../schema