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

Function genInputText

help_text.go:67–82  ·  view source on GitHub ↗
(w io.Writer, doc inputDoc)

Source from the content-addressed store, hash-verified

65)
66
67func 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
84func genFilterText(w io.Writer, doc filterDoc) {
85 fmt.Fprintf(w, "=============================================\n")

Callers 1

GenerateTextHelpFunction · 0.85

Calls 1

genConfigKeysTextFunction · 0.85

Tested by

no test coverage detected