Skip to content

Commit

Permalink
docs: Updated the generator docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Oct 15, 2023
1 parent 6433e19 commit ccc81a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ After that, search the project for `@TODO` and make the appropriate changes. Exc
## Checklist

* [ ] Generate the stub files.
* [ ] In the new `examples/data-sources/*/data-source.tf` file, ensure the example is implemented correctly.
* [ ] In the new `examples/data-sources/*/terraform-plan.example` file, copy content or delete.
* [ ] In the new `templates/data-sources/*.tmpl` file, update the template that will be used by the `tfplugindocs` package.
* [ ] Generate the Terraform provider documentation.
* [ ] In the new `*_data_source.go` file, update the `*SourceModel` struct.
* [ ] In the new `*_data_source.go` file, update the Schema Attributes to match the `*SourceModel` struct.
* [ ] In the new `*_data_source.go` file, implement the remainder of the `Read` function.
* [ ] In the new test fixture file, implement the test cases.
* [ ] In the new `*_data_source_fixture.tftpl` file, ensure the fixture is implemented correctly.
* [ ] In the new `*_data_source_test.go` file, ensure the test references the fixture correctly.
* [ ] Run the integration tests.
* [ ] In the new `examples/data-sources/*/data-source.tf` file, ensure the example is implemented correctly.
* [ ] In the new `examples/data-sources/*/terraform-plan.example` file, copy content or delete.
* [ ] In the new `templates/data-sources/*.tmpl` file, update the template that will be used by the `tfplugindocs` package.
* [ ] Generate the Terraform provider documentation.
* [ ] Run `tfschema data show -format=json DATASOURCE | jq -Mrc '.attributes[]'`.
* [ ] In the new `bats/*.bats.sh` file, update its contents to match the `tfschema` output.
* [ ] Run the bats tests.
5 changes: 2 additions & 3 deletions generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ func main() {
panic(err)
}

fmt.Println("")
fmt.Println("Add " + varMap["PascalStrip"] + "DataSource" + " to " + getAbs("../corefuncprovider/provider.go"))
fmt.Println("")

// ../bats
Expand Down Expand Up @@ -97,9 +99,6 @@ func main() {
getAbs("./examples/versions.tftpl"),
getAbs(edsPath+"/versions.tftpl"),
)

fmt.Println("")
fmt.Println("Add " + varMap["PascalStrip"] + "DataSource" + " to " + getAbs("../corefuncprovider/provider.go"))
}

func getAbs(path string) string {
Expand Down

0 comments on commit ccc81a2

Please sign in to comment.