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

Function genUploadText

help_text.go:129–144  ·  view source on GitHub ↗
(w io.Writer, doc uploadDoc)

Source from the content-addressed store, hash-verified

127}
128
129func genUploadText(w io.Writer, doc uploadDoc) {
130 fmt.Fprintf(w, "=============================================\n")
131 fmt.Fprintf(w, "Upload: %s\n", doc.name)
132 fmt.Fprintf(w, "=============================================\n")
133 fmt.Fprintf(w, doc.help)
134
135 if len(doc.keys) == 0 {
136 fmt.Fprintf(w, "\n(no configuration available)\n\n")
137 } else {
138 fmt.Fprintf(w, "\nKeys available in the [upload.config] section:\n\n")
139 genConfigKeysText(w, doc.keys)
140 }
141
142 fmt.Fprintln(w)
143 fmt.Fprintln(w)
144}
145
146func genMetricsText(w io.Writer, doc metricsDoc) {
147 fmt.Fprintf(w, "=============================================\n")

Callers 1

GenerateTextHelpFunction · 0.85

Calls 1

genConfigKeysTextFunction · 0.85

Tested by

no test coverage detected