return the first line of a string if its a comment. This gives as the # Source: lines from the rendering
(s string)
| 448 | // return the first line of a string if its a comment. |
| 449 | // This gives as the # Source: lines from the rendering |
| 450 | func getComment(s string) string { |
| 451 | i := strings.Index(s, "\n") |
| 452 | if i < 0 || !strings.HasPrefix(s, "#") { |
| 453 | return "" |
| 454 | } |
| 455 | return s[:i+1] |
| 456 | } |
| 457 | |
| 458 | // Releases reindex the content based on the template names and pass it to Manifests |
| 459 | func Releases(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options, to io.Writer) bool { |
no outgoing calls
no test coverage detected