github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/provider-simple-v6/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 plugin "github.com/terramate-io/tf/plugin6" 9 simple "github.com/terramate-io/tf/provider-simple-v6" 10 "github.com/terramate-io/tf/tfplugin6" 11 ) 12 13 func main() { 14 plugin.Serve(&plugin.ServeOpts{ 15 GRPCProviderFunc: func() tfplugin6.ProviderServer { 16 return grpcwrap.Provider6(simple.Provider()) 17 }, 18 }) 19 }