MCPcopy Create free account
hub / github.com/rilldata/rill / PrintModelPartitions

Method PrintModelPartitions

cli/pkg/printer/resources.go:635–642  ·  view source on GitHub ↗
(partitions []*runtimev1.ModelPartition)

Source from the content-addressed store, hash-verified

633}
634
635func (p *Printer) PrintModelPartitions(partitions []*runtimev1.ModelPartition) {
636 if len(partitions) == 0 {
637 p.PrintfWarn("No partitions found\n")
638 return
639 }
640
641 p.PrintData(toModelPartitionsTable(partitions))
642}
643
644func toModelPartitionsTable(partitions []*runtimev1.ModelPartition) []*modelPartition {
645 res := make([]*modelPartition, 0, len(partitions))

Callers 1

PartitionsCmdFunction · 0.80

Calls 3

PrintfWarnMethod · 0.95
PrintDataMethod · 0.95
toModelPartitionsTableFunction · 0.85

Tested by

no test coverage detected