github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/provider-simple/main/main.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package main 5 6 import ( 7 "github.com/terramate-io/tf/grpcwrap" 8 "github.com/terramate-io/tf/plugin" 9 simple "github.com/terramate-io/tf/provider-simple" 10 "github.com/terramate-io/tf/tfplugin5" 11 ) 12 13 func main() { 14 plugin.Serve(&plugin.ServeOpts{ 15 GRPCProviderFunc: func() tfplugin5.ProviderServer { 16 return grpcwrap.Provider(simple.Provider()) 17 }, 18 }) 19 }