All checks were successful
CI / build (push) Successful in 1m16s
The CI environment does not have the terraform binary installed. The terraform fmt directive is not required for builds — it was only a convenience for formatting example .tf files locally. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
42 lines
1010 B
Go
42 lines
1010 B
Go
// Copyright (c) EZSCALE.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"flag"
|
|
"log"
|
|
|
|
"github.com/hashicorp/terraform-plugin-framework/providerserver"
|
|
|
|
"terraform-provider-virtfusion/internal/provider"
|
|
)
|
|
|
|
// Run "go generate" to generate the docs for the registry/website.
|
|
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate -provider-name virtfusion
|
|
|
|
var (
|
|
// These will be set by the goreleaser configuration
|
|
// to appropriate values for the compiled binary.
|
|
// https://goreleaser.com/cookbooks/using-main.version/
|
|
version string = "dev"
|
|
)
|
|
|
|
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()
|
|
|
|
opts := providerserver.ServeOpts{
|
|
Address: "registry.terraform.io/EZSCALE/virtfusion",
|
|
Debug: debug,
|
|
}
|
|
|
|
err := providerserver.Serve(context.Background(), provider.New(version), opts)
|
|
if err != nil {
|
|
log.Fatal(err.Error())
|
|
}
|
|
}
|