代码拉取完成,页面将自动刷新
package main
import (
"flag"
"log"
"github.com/RedisLabs/terraform-provider-rediscloud/provider"
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
)
var (
// Provided by goreleaser configuration for each binary
// Allows goreleaser to pass version details
version = "dev"
)
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.New(version)}
// Prevent logger from prepending date/time to logs, which breaks log-level parsing/filtering
log.SetFlags(0)
if debugMode {
opts.Debug = true
opts.ProviderAddr = "RedisLabs/rediscloud"
}
plugin.Serve(opts)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。