Added multiple cmd targets for more convenient installation with go get

This commit is contained in:
James Mills 2018-12-24 14:32:13 +10:00
parent 95d52ed4d6
commit a1f744dd73
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
3 changed files with 20 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
terraform-provider-proxmox
*~*
*.bak

View File

@ -0,0 +1,18 @@
package main
import (
"github.com/Telmate/terraform-provider-proxmox/proxmox"
"github.com/hashicorp/terraform/plugin"
"github.com/hashicorp/terraform/terraform"
)
func main() {
plugin.Serve(&plugin.ServeOpts{
ProviderFunc: func() terraform.ResourceProvider {
return proxmox.Provider()
},
ProvisionerFunc: func() terraform.ResourceProvisioner {
return proxmox.Provisioner()
},
})
}