-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathmain.go
More file actions
31 lines (22 loc) · 673 Bytes
/
main.go
File metadata and controls
31 lines (22 loc) · 673 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
29
30
31
// © Broadcom. All Rights Reserved.
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
// SPDX-License-Identifier: MPL-2.0
package main
import (
"flag"
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
"github.com/vmware/terraform-provider-tanzu-mission-control/internal/provider"
)
func main() {
var debugMode bool
flag.BoolVar(&debugMode, "debug", false, "set to true to run the provider with support for debuggers like delve")
flag.Parse()
opts := &plugin.ServeOpts{
ProviderFunc: provider.Provider,
}
if debugMode {
opts.Debug = debugMode
opts.ProviderAddr = "vmware/tanzu-mission-control"
}
plugin.Serve(opts)
}