Update docs (#65)

* Update go mod and include go:generate for docs

* go generate
This commit is contained in:
Louis Ruch authored and GitHub committed 2021-01-14 14:07:36 -08:00
1 parent 39f8c9f501
commit 224c8f5849
21 files changed
+151 -123

No files matched your search

+10
View File
@@ -5,6 +5,16 @@ import (
"github.com/hashicorp/terraform-provider-boundary/internal/provider"
)
// Run "go generate" to format example terraform files and generate the docs for the registry/website
// If you do not have terraform installed, you can remove the formatting command, but its suggested to
// ensure the documentation is formatted properly.
//go:generate terraform fmt -recursive ./examples/
// Run the docs generation tool, check its repository for more information on how it works and how docs
// can be customized.
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
func main() {
plugin.Serve(&plugin.ServeOpts{ProviderFunc: provider.New})
}