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

Method PrintMagicAuthTokens

cli/pkg/printer/resources.go:433–440  ·  view source on GitHub ↗
(tkns []*adminv1.MagicAuthToken)

Source from the content-addressed store, hash-verified

431}
432
433func (p *Printer) PrintMagicAuthTokens(tkns []*adminv1.MagicAuthToken) {
434 if len(tkns) == 0 {
435 p.PrintfWarn("No URLs found\n")
436 return
437 }
438
439 p.PrintData(toMagicAuthTokensTable(tkns))
440}
441
442func toMagicAuthTokensTable(tkns []*adminv1.MagicAuthToken) []*magicAuthToken {
443 res := make([]*magicAuthToken, 0, len(tkns))

Callers 1

ListCmdFunction · 0.80

Calls 3

PrintfWarnMethod · 0.95
PrintDataMethod · 0.95
toMagicAuthTokensTableFunction · 0.85

Tested by

no test coverage detected