main.go (20 lines of code) (raw):
package main
import (
"context"
"flag"
"log"
"terraform-provider-teamcity/teamcity"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
)
func main() {
var debug bool
flag.BoolVar(&debug, "debug", false, "set to true to run the provider with support for debuggers like delve")
flag.Parse()
err := providerserver.Serve(context.Background(), teamcity.New, providerserver.ServeOpts{
Address: "registry.terraform.io/jetbrains/teamcity",
Debug: debug,
})
if err != nil {
log.Fatal(err.Error())
}
}