MCPcopy Create free account
hub / github.com/auth0/auth0-cli / padRight

Function padRight

internal/cli/event_streams_subscribe.go:655–660  ·  view source on GitHub ↗

padRight pads s with spaces to width, or returns s unchanged if it already exceeds width.

(s string, width int)

Source from the content-addressed store, hash-verified

653// padRight pads s with spaces to width, or returns s unchanged if it already
654// exceeds width.
655func padRight(s string, width int) string {
656 if len(s) >= width {
657 return s
658 }
659 return s + strings.Repeat(" ", width-len(s))
660}
661
662// invalidEventTypesError builds a user-friendly error for one or more unknown
663// --event-type values and points to --list-event-types for the full list. The

Callers 4

TestPadRightFunction · 0.85
subscribeEventStreamCmdFunction · 0.85
renderEventSummaryFunction · 0.85
renderErrorEventFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestPadRightFunction · 0.68