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

Function manPrintExitCodes

internal/docs/man.go:201–208  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

199}
200
201func manPrintExitCodes(buf *bytes.Buffer) {
202 buf.WriteString("# EXIT CODES\n")
203 buf.WriteString("0: Successful execution\n\n")
204 buf.WriteString("1: Error\n\n")
205 buf.WriteString("2: Command canceled\n\n")
206 buf.WriteString("4: Authentication required\n\n")
207 buf.WriteString("NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.\n\n")
208}
209
210func genMan(cmd *cobra.Command, header *GenManHeader) []byte {
211 cmd.InitDefaultHelpCmd()

Callers 1

genManFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected