28 lines
670 B
Go
28 lines
670 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"log"
|
|
|
|
"github.com/hashicorp/terraform-plugin-framework/providerserver"
|
|
|
|
"terraform-provider-hpe1810/internal/provider"
|
|
)
|
|
|
|
// version is overridden at build time via -ldflags, e.g.:
|
|
//
|
|
// go build -ldflags "-X main.version=0.1.0"
|
|
var version = "dev"
|
|
|
|
func main() {
|
|
err := providerserver.Serve(context.Background(), provider.New(version), providerserver.ServeOpts{
|
|
// Only meaningful once/if this is ever published; for local
|
|
// development with dev_overrides (~/.tofurc) this address just
|
|
// needs to match what's referenced there.
|
|
Address: "local/joachimfriberg/hpe1810",
|
|
})
|
|
if err != nil {
|
|
log.Fatal(err.Error())
|
|
}
|
|
}
|