File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,15 @@ func RegisterCustomDetectors(atmosConfig schema.AtmosConfiguration) {
157
157
)
158
158
}
159
159
160
+ func RegisterCustomGetters (atmosConfig schema.AtmosConfiguration ) {
161
+ getter .Detectors = append (
162
+ []getter.Detector {
163
+ & CustomGitHubDetector {AtmosConfig : atmosConfig },
164
+ },
165
+ getter .Detectors ... ,
166
+ )
167
+ }
168
+
160
169
// GoGetterGet downloads packages (files and folders) from different sources using `go-getter` and saves them into the destination
161
170
func GoGetterGet (
162
171
atmosConfig schema.AtmosConfiguration ,
@@ -178,7 +187,14 @@ func GoGetterGet(
178
187
Mode : clientMode ,
179
188
Getters : map [string ]getter.Getter {
180
189
// Overriding 'git'
181
- "git" : & CustomGitGetter {},
190
+ "git" : & CustomGitGetter {},
191
+ "file" : & getter.FileGetter {},
192
+ "hg" : & getter.HgGetter {},
193
+ "http" : & getter.HttpGetter {},
194
+ "https" : & getter.HttpGetter {},
195
+ // "s3": &getter.S3Getter{}, // add as needed
196
+ // "gcs": &getter.GCSGetter{},
197
+
182
198
},
183
199
}
184
200
if err := client .Get (); err != nil {
You can’t perform that action at this time.
0 commit comments