Envbuilder

This commit is contained in:
Mathias Fredriksson 2024-07-22 13:42:57 +03:00
commit 1a49822fc9
25 changed files with 350 additions and 691 deletions

19
main.go
View file

@ -9,7 +9,7 @@ import (
"log"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/hashicorp/terraform-provider-scaffolding-framework/internal/provider"
"github.com/mafredri/terraform-provider-envbuilder/internal/provider"
)
// Run "go generate" to format example terraform files and generate the docs for the registry/website
@ -20,16 +20,14 @@ import (
// 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 generate -provider-name scaffolding
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate -provider-name envbuilder
var (
// these will be set by the goreleaser configuration
// to appropriate values for the compiled binary.
version string = "dev"
// these will be set by the goreleaser configuration
// to appropriate values for the compiled binary.
var version string = "dev"
// goreleaser can pass other information to the main package, such as the specific commit
// https://goreleaser.com/cookbooks/using-main.version/
)
// goreleaser can pass other information to the main package, such as the specific commit
// https://goreleaser.com/cookbooks/using-main.version/
func main() {
var debug bool
@ -41,12 +39,11 @@ func main() {
// TODO: Update this string with the published name of your provider.
// Also update the tfplugindocs generate command to either remove the
// -provider-name flag or set its value to the updated provider name.
Address: "registry.terraform.io/hashicorp/scaffolding",
Address: "registry.terraform.io/hashicorp/envbuilder",
Debug: debug,
}
err := providerserver.Serve(context.Background(), provider.New(version), opts)
if err != nil {
log.Fatal(err.Error())
}