INNER CODE UNIT · Go
printFeatureReports
theopenlane/core · cmd/catalog/main.go:561
func printFeatureReports(reports []featureReport) {
if len(reports) == 0 {
return
}
writer := tables.NewTableWriter(outWriter, "Type", "Feature", "Product", "MissingPrices")
for _, r := range reports {
_ = writer.AddRow(r.kind, string(r.name), r.product, r.missingPrices)
}
_ = writer.Render()
}
// addModuleInteractive implements the interactive add-module functionality
func addModuleInteractive(ctx context.Context, catalogFile, apiKey, orgID string) error {
cat, err := catalog.LoadCatalog(catalogFile)
if err != nil {