-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmain.go
31 lines (26 loc) · 811 Bytes
/
main.go
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
package main
import (
"log"
"github.com/elsudano/terraform-provider-vmworkstation/vmworkstation"
"github.com/hashicorp/terraform-plugin-sdk/plugin"
)
func main() {
// Remove any date and time prefix in log package function output to
// prevent duplicate timestamp and incorrect log level setting
log.SetFlags(log.Flags() &^ (log.Ldate | log.Ltime))
plugin.Serve(&plugin.ServeOpts{
ProviderFunc: vmworkstation.Provider,
})
}
/* func main() {
client, err := wsapiclient.New()
if err != nil {
log.Printf("[VMWS] Fi: main.go Fu: Main Ob: %#v\n", client)
os.Exit(1)
}
fmt.Printf("La URL: %s\n", client.BaseURL.String())
client.User = "admin"
client.Password = "Adm1n#00"
client.BaseURL, _ = url.Parse("https://localhost:8697/api/")
fmt.Printf("La URL: %s\n", client.BaseURL.String())
} */