Skip to content

Commit 4c5e0ef

Browse files
committed
feat: add atmos-specific fields to vendor manifest data
1 parent cccede3 commit 4c5e0ef

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

pkg/list/list_vendor.go

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,18 +215,24 @@ func FilterAndListVendors(listConfig schema.ListConfig, format string, delimiter
215215
}
216216

217217
data := map[string]interface{}{
218-
"Component": vendor.Component,
219-
"Version": vendor.Version,
220-
"Type": "Vendor Manifest",
221-
"File": vendor.File,
222-
"Source": vendor.Source,
223-
"Target": "",
224-
"Tags": vendor.Tags,
218+
"Component": vendor.Component,
219+
"Version": vendor.Version,
220+
"Type": "Vendor Manifest",
221+
"File": vendor.File,
222+
"Source": vendor.Source,
223+
"Target": "",
224+
"Tags": vendor.Tags,
225+
"atmos_component": vendor.Component,
226+
"atmos_vendor_type": "Vendor Manifest",
227+
"atmos_vendor_file": vendor.File,
228+
"atmos_vendor_target": "",
225229
}
226230

227231
// Add target path if available
228232
if len(vendor.Targets) > 0 {
229-
data["Target"] = filepath.Join(atmosConfig.BasePath, vendor.Targets[0])
233+
target := filepath.Join(atmosConfig.BasePath, vendor.Targets[0])
234+
data["Target"] = target
235+
data["atmos_vendor_target"] = target
230236
}
231237

232238
// Process the template

0 commit comments

Comments
 (0)