|
@ -93,13 +93,17 @@ func run(c *cli.Context) error { |
|
|
json.Unmarshal([]byte(c.String("terraform.remote")), &remote) |
|
|
json.Unmarshal([]byte(c.String("terraform.remote")), &remote) |
|
|
|
|
|
|
|
|
var vars map[string]string |
|
|
var vars map[string]string |
|
|
|
|
|
if c.String("terraform.vars") != "" { |
|
|
if err := json.Unmarshal([]byte(c.String("terraform.vars")), &vars); err != nil { |
|
|
if err := json.Unmarshal([]byte(c.String("terraform.vars")), &vars); err != nil { |
|
|
panic(err) |
|
|
panic(err) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
var secrets map[string]string |
|
|
var secrets map[string]string |
|
|
|
|
|
if c.String("terraform.secrets") != "" { |
|
|
if err := json.Unmarshal([]byte(c.String("terraform.secrets")), &secrets); err != nil { |
|
|
if err := json.Unmarshal([]byte(c.String("terraform.secrets")), &secrets); err != nil { |
|
|
panic(err) |
|
|
panic(err) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
plugin := Plugin{ |
|
|
plugin := Plugin{ |
|
|
Config: Config{ |
|
|
Config: Config{ |
|
|