mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-22 10:40:39 +00:00
Add sensitive flag
Do not show commands being ran if sensitive is true
This commit is contained in:
parent
d12da87a0c
commit
0a79958afc
3
main.go
3
main.go
@ -15,6 +15,7 @@ type terraform struct {
|
|||||||
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
|
||||||
|
if !vargs.Sensitive {
|
||||||
trace(c)
|
trace(c)
|
||||||
|
}
|
||||||
|
|
||||||
err := c.Run()
|
err := c.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user