wrapTTY wraps a string to the width of the terminal, or 80 no terminal is detected.
(s string)
| 42 | // wrapTTY wraps a string to the width of the terminal, or 80 no terminal |
| 43 | // is detected. |
| 44 | func wrapTTY(s string) string { |
| 45 | // #nosec G115 - Safe conversion as TTY width is expected to be within uint range |
| 46 | return wordwrap.WrapString(s, uint(ttyWidth())) |
| 47 | } |
| 48 | |
| 49 | var usageTemplate = func() *template.Template { |
| 50 | var ( |