Browse Source

Add sensitive flag

Do not show commands being ran if sensitive is true
pull/5/head
Jacob McCann 9 years ago
parent
commit
0a79958afc
  1. 13
      main.go

13
main.go

@ -11,10 +11,11 @@ import (
) )
type terraform struct { type terraform struct {
Remote remote `json:"remote"` Remote remote `json:"remote"`
Plan bool `json:"plan"` Plan bool `json:"plan"`
Vars map[string]string `json:"vars"` Vars map[string]string `json:"vars"`
Cacert string `json:"ca_cert"` Cacert string `json:"ca_cert"`
Sensitive bool `json:"sensitive"`
} }
type remote struct { type remote struct {
@ -49,7 +50,9 @@ func main() {
c.Dir = workspace.Path c.Dir = workspace.Path
c.Stdout = os.Stdout c.Stdout = os.Stdout
c.Stderr = os.Stderr c.Stderr = os.Stderr
trace(c) if !vargs.Sensitive {
trace(c)
}
err := c.Run() err := c.Run()
if err != nil { if err != nil {

Loading…
Cancel
Save