mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 23:30:39 +00:00
Remove remote struct and option lookup since they are not being used any more
This commit is contained in:
parent
cbbcf0bd65
commit
73851ed5d8
3
main.go
3
main.go
@ -95,9 +95,6 @@ func run(c *cli.Context) error {
|
|||||||
_ = godotenv.Load(c.String("env-file"))
|
_ = godotenv.Load(c.String("env-file"))
|
||||||
}
|
}
|
||||||
|
|
||||||
remote := Remote{}
|
|
||||||
json.Unmarshal([]byte(c.String("remote")), &remote)
|
|
||||||
|
|
||||||
var vars map[string]string
|
var vars map[string]string
|
||||||
if c.String("vars") != "" {
|
if c.String("vars") != "" {
|
||||||
if err := json.Unmarshal([]byte(c.String("vars")), &vars); err != nil {
|
if err := json.Unmarshal([]byte(c.String("vars")), &vars); err != nil {
|
||||||
|
@ -29,11 +29,6 @@ type (
|
|||||||
Targets []string
|
Targets []string
|
||||||
}
|
}
|
||||||
|
|
||||||
Remote struct {
|
|
||||||
Backend string `json:"backend"`
|
|
||||||
Config map[string]string `json:"config"`
|
|
||||||
}
|
|
||||||
|
|
||||||
InitOptions struct {
|
InitOptions struct {
|
||||||
BackendConfig string `json:"backend-config"`
|
BackendConfig string `json:"backend-config"`
|
||||||
Lock *bool `json:"lock-state"`
|
Lock *bool `json:"lock-state"`
|
||||||
|
Loading…
Reference in New Issue
Block a user