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

Function genFilterText

help_text.go:84–99  ·  view source on GitHub ↗
(w io.Writer, doc filterDoc)

Source from the content-addressed store, hash-verified

82}
83
84func genFilterText(w io.Writer, doc filterDoc) {
85 fmt.Fprintf(w, "=============================================\n")
86 fmt.Fprintf(w, "Filter: %s\n", doc.name)
87 fmt.Fprintf(w, "=============================================\n")
88 fmt.Fprintf(w, doc.help)
89
90 if len(doc.keys) == 0 {
91 fmt.Fprintf(w, "\n(no configuration available)\n\n")
92 } else {
93 fmt.Fprintf(w, "\nKeys available in the [filter.config] section:\n\n")
94 genConfigKeysText(w, doc.keys)
95 }
96
97 fmt.Fprintln(w)
98 fmt.Fprintln(w)
99}
100
101func genOutputText(w io.Writer, doc outputDoc) {
102 const (

Callers 1

GenerateTextHelpFunction · 0.85

Calls 1

genConfigKeysTextFunction · 0.85

Tested by

no test coverage detected