MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / writeToWriter

Function writeToWriter

pkg/flags.go:305–310  ·  view source on GitHub ↗
(w *tabwriter.Writer, flagStruct []FlagStruct)

Source from the content-addressed store, hash-verified

303}
304
305func writeToWriter(w *tabwriter.Writer, flagStruct []FlagStruct) {
306 for _, ts := range flagStruct {
307 fmt.Fprintf(w, "--%s\t-%s\t%s\n", ts.LongFlag, ts.ShortFlag, ts.Description)
308 }
309 w.Flush()
310}
311
312func appendString(options *[]FlagStruct, varString *string, longFlag string, shortFlag string, defaultValue string, description string) {
313 flag.StringVar(varString, longFlag, defaultValue, "")

Callers 1

helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected