diff --git a/cmd/cli/app/datasource/common.go b/cmd/cli/app/datasource/common.go index 522c513fd1..6cd0e02db7 100644 --- a/cmd/cli/app/datasource/common.go +++ b/cmd/cli/app/datasource/common.go @@ -140,10 +140,18 @@ func appendDataSourcePropertiesToName(ds *minderv1.DataSource) string { // getDataSourceType returns the type of data source func getDataSourceType(ds *minderv1.DataSource) string { + dsTypes := []string{} if ds.GetRest() != nil { - return "REST" + dsTypes = append(dsTypes, "REST") } - return "Unknown" + if ds.GetDeps() != nil { + dsTypes = append(dsTypes, "Dependencies") + } + + if len(dsTypes) == 0 { + return "Unknown" + } + return strings.Join(dsTypes, "\n") } // initializeTableForList initializes the table for listing data sources