Bruno Schaatsbergen 45a650b070
offload go generate to tools/ to prevent bloating the root Go module (#239)
* chore: move generate to `tools/`

* move generate to `tools/`

* extend make

* set `-provider-name`

* chore: improve makefile

* chore: remove unwanted comment

* add newlines

* align go versions
2024-09-16 17:38:41 -04:00

23 lines
765 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//go:build generate
package tools
import (
_ "github.com/hashicorp/copywrite"
_ "github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs"
)
// Generate copyright headers
//go:generate go run github.com/hashicorp/copywrite headers -d .. --config ../.copywrite.hcl
// Format Terraform code for use in documentation.
// If you do not have Terraform installed, you can remove the formatting command, but it is suggested
// to ensure the documentation is formatted properly.
//go:generate terraform fmt -recursive ../examples/
// Generate documentation.
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-dir .. -provider-name scaffolding