MCPcopy
hub / github.com/alecthomas/kong / ExitCoder

Interface ExitCoder

exit.go:16–18  ·  view source on GitHub ↗

ExitCoder is an interface that may be implemented by an error value to provide an integer exit code. The method ExitCode should return an integer that is intended to be used as the exit code for the application.

Source from the content-addressed store, hash-verified

14// provide an integer exit code. The method ExitCode should return an integer
15// that is intended to be used as the exit code for the application.
16type ExitCoder interface {
17 ExitCode() int
18}
19
20// exitCodeFromError returns the exit code for the given error.
21// If err implements the exitCoder interface, the ExitCode method is called.

Callers 1

exitCodeFromErrorFunction · 0.95

Implementers 1

ParseErrorerror.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…