MCPcopy Index your code
hub / github.com/coder/coder / ExitCode

Method ExitCode

cli/root.go:1294–1296  ·  view source on GitHub ↗

ExitCode returns the OS exit code that the CLI will use when this error is returned from a command handler.

()

Source from the content-addressed store, hash-verified

1292// ExitCode returns the OS exit code that the CLI will use when this error is
1293// returned from a command handler.
1294func (e *exitError) ExitCode() int {
1295 return e.code
1296}
1297
1298// ExitError returns an error that will cause the CLI to exit with the given
1299// exit code. If err is non-nil, it will be wrapped by the returned error.

Callers 9

TestAgentScriptFunction · 0.80
gitsshFunction · 0.80
TestSSH_CoderConnectFunction · 0.80
TestStartFunction · 0.80
TestStartFunction · 0.80
startMethod · 0.80
runMethod · 0.80
sessionHandlerMethod · 0.80

Calls

no outgoing calls

Tested by 5

TestAgentScriptFunction · 0.64
TestSSH_CoderConnectFunction · 0.64
TestStartFunction · 0.64
TestStartFunction · 0.64