MCPcopy Index your code
hub / github.com/cli/cli / manPrintJSONFields

Function manPrintJSONFields

internal/docs/man.go:190–199  ·  view source on GitHub ↗
(buf *bytes.Buffer, command *cobra.Command)

Source from the content-addressed store, hash-verified

188}
189
190func manPrintJSONFields(buf *bytes.Buffer, command *cobra.Command) {
191 raw, ok := command.Annotations["help:json-fields"]
192 if !ok {
193 return
194 }
195
196 buf.WriteString("# JSON FIELDS\n")
197 buf.WriteString(text.FormatSlice(strings.Split(raw, ","), 0, 0, "`", "`", true))
198 buf.WriteString("\n")
199}
200
201func manPrintExitCodes(buf *bytes.Buffer) {
202 buf.WriteString("# EXIT CODES\n")

Callers 1

genManFunction · 0.85

Calls 1

FormatSliceFunction · 0.92

Tested by

no test coverage detected