show catalog component list -o json as before if experimental mode is off
@@ -103,6 +103,7 @@ func (o *ListComponentsOptions) Run() (err error) {
supported, _ := catalog.SliceSupportedTags(image)
o.catalogList.Items[i].Spec.SupportedTags = supported
}
+ if experimental.IsExperimentalModeEnabled() {
combinedList := combinedCatalogList{
TypeMeta: metav1.TypeMeta{
Kind: "List",
@@ -112,6 +113,9 @@ func (o *ListComponentsOptions) Run() (err error) {
DevfileItems: o.catalogDevfileList.Items,
}
machineoutput.OutputSuccess(combinedList)
+ } else {
+ machineoutput.OutputSuccess(o.catalogList)
+ }
} else {
w := tabwriter.NewWriter(os.Stdout, 5, 2, 3, ' ', tabwriter.TabIndent)
var supCatalogList, unsupCatalogList []catalog.ComponentType
