forked from stackitcloud/terraform-provider-stackit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
28 lines (24 loc) · 608 Bytes
/
main.go
File metadata and controls
28 lines (24 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import (
"context"
"flag"
"log"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/stackitcloud/terraform-provider-stackit/stackit"
)
var (
// goreleaser configuration will override this value
version string = "dev"
)
func main() {
var debug bool
flag.BoolVar(&debug, "debug", false, "allows debugging the provider")
flag.Parse()
err := providerserver.Serve(context.Background(), stackit.New(version), providerserver.ServeOpts{
Address: "registry.terraform.io/stackitcloud/stackit",
Debug: debug,
})
if err != nil {
log.Fatal(err.Error())
}
}