Temporary workaround for yaml lib generating incorrect yaml with long strings that do not contain \n.
(s string)
| 39 | // Temporary workaround for yaml lib generating incorrect yaml with long strings |
| 40 | // that do not contain \n. |
| 41 | func forceMultiLine(s string) string { |
| 42 | if len(s) > 60 && !strings.Contains(s, "\n") { |
| 43 | s += "\n" |
| 44 | } |
| 45 | return s |
| 46 | } |
| 47 | |
| 48 | type byName []*cobra.Command |
| 49 |
no outgoing calls
no test coverage detected