MCPcopy Create free account
hub / github.com/AdRoll/baker / genMetricsText

Function genMetricsText

help_text.go:146–160  ·  view source on GitHub ↗
(w io.Writer, doc metricsDoc)

Source from the content-addressed store, hash-verified

144}
145
146func 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
162func genConfigKeysText(w io.Writer, keys []helpConfigKey) {
163 hpad := fmt.Sprintf(helpTextHdrSfmt, "", "", "", "")

Callers 1

GenerateTextHelpFunction · 0.85

Calls 1

genConfigKeysTextFunction · 0.85

Tested by

no test coverage detected