(w io.Writer, doc inputDoc)
| 65 | ) |
| 66 | |
| 67 | func genInputText(w io.Writer, doc inputDoc) { |
| 68 | fmt.Fprintf(w, "=============================================\n") |
| 69 | fmt.Fprintf(w, "Input: %s\n", doc.name) |
| 70 | fmt.Fprintf(w, "=============================================\n") |
| 71 | fmt.Fprintf(w, doc.help) |
| 72 | |
| 73 | if len(doc.keys) == 0 { |
| 74 | fmt.Fprintf(w, "\n(no configuration available)\n\n") |
| 75 | } else { |
| 76 | fmt.Fprintf(w, "\nKeys available in the [input.config] section:\n\n") |
| 77 | genConfigKeysText(w, doc.keys) |
| 78 | } |
| 79 | |
| 80 | fmt.Fprintln(w) |
| 81 | fmt.Fprintln(w) |
| 82 | } |
| 83 | |
| 84 | func genFilterText(w io.Writer, doc filterDoc) { |
| 85 | fmt.Fprintf(w, "=============================================\n") |
no test coverage detected