mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-25 09:40:39 +00:00
Print out the plugin version to help debugging
This commit is contained in:
parent
99c73fbdf6
commit
f10224da92
7
main.go
7
main.go
@ -2,14 +2,18 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
"io/ioutil"
|
|
||||||
|
|
||||||
"github.com/drone/drone-plugin-go/plugin"
|
"github.com/drone/drone-plugin-go/plugin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
buildCommit string
|
||||||
|
)
|
||||||
|
|
||||||
type terraform struct {
|
type terraform struct {
|
||||||
Remote remote `json:"remote"`
|
Remote remote `json:"remote"`
|
||||||
Plan bool `json:"plan"`
|
Plan bool `json:"plan"`
|
||||||
@ -24,6 +28,7 @@ type remote struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
fmt.Printf("Drone Terraform Plugin built from %s\n", buildCommit)
|
||||||
|
|
||||||
workspace := plugin.Workspace{}
|
workspace := plugin.Workspace{}
|
||||||
vargs := terraform{}
|
vargs := terraform{}
|
||||||
|
Loading…
Reference in New Issue
Block a user