(w io.Writer, doc metricsDoc)
| 144 | } |
| 145 | |
| 146 | func genMetricsText(w io.Writer, doc metricsDoc) { |
| 147 | fmt.Fprintf(w, "=============================================\n") |
| 148 | fmt.Fprintf(w, "Metrics: %s\n", doc.name) |
| 149 | fmt.Fprintf(w, "=============================================\n") |
| 150 | |
| 151 | if len(doc.keys) == 0 { |
| 152 | fmt.Fprintf(w, "\n(no configuration available)\n\n") |
| 153 | } else { |
| 154 | fmt.Fprintf(w, "\nKeys available in the [metrics.config] section:\n\n") |
| 155 | genConfigKeysText(w, doc.keys) |
| 156 | } |
| 157 | |
| 158 | fmt.Fprintln(w) |
| 159 | fmt.Fprintln(w) |
| 160 | } |
| 161 | |
| 162 | func genConfigKeysText(w io.Writer, keys []helpConfigKey) { |
| 163 | hpad := fmt.Sprintf(helpTextHdrSfmt, "", "", "", "") |
no test coverage detected