github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/provisioner-local-exec/main/main.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package main 5 6 import ( 7 localexec "github.com/terramate-io/tf/builtin/provisioners/local-exec" 8 "github.com/terramate-io/tf/grpcwrap" 9 "github.com/terramate-io/tf/plugin" 10 "github.com/terramate-io/tf/tfplugin5" 11 ) 12 13 func main() { 14 // Provide a binary version of the internal terraform provider for testing 15 plugin.Serve(&plugin.ServeOpts{ 16 GRPCProvisionerFunc: func() tfplugin5.ProvisionerServer { 17 return grpcwrap.Provisioner(localexec.New()) 18 }, 19 }) 20 }