(w io.Writer, doc filterDoc)
| 82 | } |
| 83 | |
| 84 | func genFilterText(w io.Writer, doc filterDoc) { |
| 85 | fmt.Fprintf(w, "=============================================\n") |
| 86 | fmt.Fprintf(w, "Filter: %s\n", doc.name) |
| 87 | fmt.Fprintf(w, "=============================================\n") |
| 88 | fmt.Fprintf(w, doc.help) |
| 89 | |
| 90 | if len(doc.keys) == 0 { |
| 91 | fmt.Fprintf(w, "\n(no configuration available)\n\n") |
| 92 | } else { |
| 93 | fmt.Fprintf(w, "\nKeys available in the [filter.config] section:\n\n") |
| 94 | genConfigKeysText(w, doc.keys) |
| 95 | } |
| 96 | |
| 97 | fmt.Fprintln(w) |
| 98 | fmt.Fprintln(w) |
| 99 | } |
| 100 | |
| 101 | func genOutputText(w io.Writer, doc outputDoc) { |
| 102 | const ( |
no test coverage detected