You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
* Added destination option to configuration, so each module could be added to one or more specific destination folder
---------
Co-authored-by: Rafal Przybyla <[email protected]>
Co-authored-by: Nathaniel Ritholtz <[email protected]>
Copy file name to clipboardExpand all lines: main.go
+72-14Lines changed: 72 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ package main
18
18
19
19
import (
20
20
"fmt"
21
-
"io/ioutil"
22
21
"os"
23
22
"os/exec"
24
23
"path/filepath"
@@ -31,12 +30,13 @@ import (
31
30
)
32
31
33
32
typemodulestruct {
34
-
Sourcestring`yaml:"source"`
35
-
Versionstring`yaml:"version"`
33
+
Sourcestring`yaml:"source"`
34
+
Versionstring`yaml:"version"`
35
+
Destinations []string`yaml:"destinations"`
36
36
}
37
37
38
38
varoptsstruct {
39
-
ModulePathstring`short:"p" long:"module_path" default:"./vendor/modules" description:"File path to install generated terraform modules"`
39
+
ModulePathstring`short:"p" long:"module_path" default:"./vendor/modules" description:"File path to install generated terraform modules, if not overridden by 'destinations:' field"`
40
40
41
41
TerrafilePathstring`short:"f" long:"terrafile_file" default:"./Terrafile" description:"File path to the Terrafile file"`
0 commit comments