tools.go 765 B

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