MCPcopy
hub / github.com/cli/cli / rpad

Function rpad

pkg/cmd/root/help.go:284–287  ·  view source on GitHub ↗

rpad adds padding to the right of a string.

(s string, padding int)

Source from the content-addressed store, hash-verified

282
283// rpad adds padding to the right of a string.
284func rpad(s string, padding int) string {
285 template := fmt.Sprintf("%%-%ds ", padding)
286 return fmt.Sprintf(template, s)
287}
288
289func dedent(s string) string {
290 lines := strings.Split(s, "\n")

Callers 1

rootHelpFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected