// Command terraform-provider-llmgw is the llmgw Terraform provider: models, // capacity quotas and guardrail attachments managed through a control // plane's admin API. // // A module of its own, so the gateway's binary does not carry Terraform's // dependencies. package main import ( "context" "flag" "log" "github.com/hashicorp/terraform-plugin-framework/providerserver" "gitea.mynodes.xyz/ilker/llmgw/terraform-provider-llmgw/internal/provider" ) // version is set when a release is built: -ldflags "-X main.version=v0.1.0". var version = "dev" // Address is the provider's source address, as a configuration's // required_providers names it. const Address = "gitea.mynodes.xyz/ilker/llmgw" func main() { var debug bool flag.BoolVar(&debug, "debug", false, "run under a debugger, printing what TF_REATTACH_PROVIDERS needs") flag.Parse() err := providerserver.Serve(context.Background(), provider.New(version), providerserver.ServeOpts{ Address: Address, Debug: debug, }) if err != nil { log.Fatal(err) } }