Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/openclaw/gogcli
/ ExitCode
Function
ExitCode
internal/cmd/exit.go:24–36 ·
view source on GitHub ↗
(err error)
Source
from the content-addressed store, hash-verified
22
}
23
24
func
ExitCode(err error) int {
25
if
err == nil {
26
return
0
27
}
28
var
ee *ExitError
29
if
errors.As(err, &ee) && ee != nil {
30
if
ee.Code < 0 {
31
return
1
32
}
33
return
ee.Code
34
}
35
return
1
36
}
Callers
15
main
Function · 0.92
TestGmailVacationUpdate_EnableDisableConflict
Function · 0.85
TestGmailVacationUpdate_InvalidTimesAreUsageErrors
Function · 0.85
TestDriveDownloadCmd_TabUnsupportedFormat
Function · 0.85
TestGmailHistoryCmd_InvalidSinceIsUsageError
Function · 0.85
TestExecute_ContactsDirectoryOtherInvalidMaxFailsBeforeService
Function · 0.85
TestSlidesElementDryRunSkipsService
Function · 0.85
TestSlidesElementValidation
Function · 0.85
TestSheetsResizeCmds_InvalidRangesAreUsageErrors
Function · 0.85
TestGmailBatchModifyCmd_MissingLabelsIsUsageError
Function · 0.85
TestExecute_DriveDownload_FormatRejected_NonGoogle
Function · 0.85
TestDryRunE2E_CommandsSkipAuthAPIAndFileWrites
Function · 0.85
Calls
no outgoing calls
Tested by
15
TestGmailVacationUpdate_EnableDisableConflict
Function · 0.68
TestGmailVacationUpdate_InvalidTimesAreUsageErrors
Function · 0.68
TestDriveDownloadCmd_TabUnsupportedFormat
Function · 0.68
TestGmailHistoryCmd_InvalidSinceIsUsageError
Function · 0.68
TestExecute_ContactsDirectoryOtherInvalidMaxFailsBeforeService
Function · 0.68
TestSlidesElementDryRunSkipsService
Function · 0.68
TestSlidesElementValidation
Function · 0.68
TestSheetsResizeCmds_InvalidRangesAreUsageErrors
Function · 0.68
TestGmailBatchModifyCmd_MissingLabelsIsUsageError
Function · 0.68
TestExecute_DriveDownload_FormatRejected_NonGoogle
Function · 0.68
TestDryRunE2E_CommandsSkipAuthAPIAndFileWrites
Function · 0.68
TestDryRunE2E_CommandSpecificPayloads
Function · 0.68