MCPcopy Index your code
hub / github.com/rilldata/rill / formatResourceNamesPB

Function formatResourceNamesPB

cli/pkg/printer/resources.go:620–633  ·  view source on GitHub ↗
(restrictResources bool, resources []*adminv1.ResourceName)

Source from the content-addressed store, hash-verified

618}
619
620func formatResourceNamesPB(restrictResources bool, resources []*adminv1.ResourceName) string {
621 if !restrictResources {
622 return "all"
623 }
624 if len(resources) == 0 {
625 return "none"
626 }
627 var parts []string
628 for _, r := range resources {
629 parts = append(parts, fmt.Sprintf("%s/%s", r.Type, r.Name))
630 }
631 sort.Strings(parts)
632 return strings.Join(parts, ", ")
633}
634
635func (p *Printer) PrintModelPartitions(partitions []*runtimev1.ModelPartition) {
636 if len(partitions) == 0 {

Callers 3

PrintProjectInvitesMethod · 0.85
toMemberUsergroupRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected