MCPcopy
hub / github.com/cli/cli / manPrintAliases

Function manPrintAliases

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

Source from the content-addressed store, hash-verified

180}
181
182func manPrintAliases(buf *bytes.Buffer, command *cobra.Command) {
183 if len(command.Aliases) > 0 {
184 buf.WriteString("# ALIASES\n")
185 buf.WriteString(strings.Join(root.BuildAliasList(command, command.Aliases), ", "))
186 buf.WriteString("\n")
187 }
188}
189
190func manPrintJSONFields(buf *bytes.Buffer, command *cobra.Command) {
191 raw, ok := command.Annotations["help:json-fields"]

Callers 1

genManFunction · 0.85

Calls 2

BuildAliasListFunction · 0.92
JoinMethod · 0.80

Tested by

no test coverage detected