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

Function PrettifyResourceKind

runtime/resources.go:167–171  ·  view source on GitHub ↗

PrettifyResourceKind returns the resource kind in a user-friendly format suitable for printing.

(k string)

Source from the content-addressed store, hash-verified

165
166// PrettifyResourceKind returns the resource kind in a user-friendly format suitable for printing.
167func PrettifyResourceKind(k string) string {
168 k = strings.TrimPrefix(k, "rill.runtime.v1.")
169 k = strings.TrimSuffix(k, "V2")
170 return k
171}
172
173// PrettifyReconcileStatus returns the reconcile status in a user-friendly format suitable for printing.
174func PrettifyReconcileStatus(s runtimev1.ReconcileStatus) string {

Callers 9

newResourceTableRowFunction · 0.92
printResourcesFunction · 0.92
buildValidationResultFunction · 0.92
shortResourceNameFunction · 0.92
ResolveInteractiveMethod · 0.92
checkRefsFunction · 0.92
markPendingMethod · 0.85
invokeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected