Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitError = 1 ExitBadArgs = 2 ExitNotFound = 3 ExitAuth = 4 ExitForbidden = 4 ExitConfirm = 5 ExitCancelled = 5 ExitConflict = 6 ExitRateLimit = 7 ExitNetwork = 7 ExitTimeout = 8 ExitCIFailed = 6 // pipeline/job wait finished in a non-success terminal state ExitIO = 1 // local filesystem failure (disk, file lock, partial write) ExitInterrupted = 130 // cancelled by signal (SIGINT = 128 + 2) )
Exit codes for machine-readable error classification.
Variables ¶
View Source
var ErrSilent = errors.New("")
ErrSilent indicates the error has been printed; cobra should not print again.
Functions ¶
func ExecuteContext ¶
ExecuteContext runs the root command with the given context (e.g. signal.NotifyContext).
func LastExitCode ¶
func LastExitCode() int
LastExitCode returns the exit code from the last command execution.
Types ¶
This section is empty.
Source Files
¶
- agent.go
- auth.go
- batch.go
- changelog.go
- confirm.go
- confirm_consumed.go
- confirm_secret.go
- context.go
- doctor.go
- errors.go
- helpers.go
- issue.go
- issue_bulk.go
- issue_comment.go
- job.go
- label.go
- listoutput.go
- milestone.go
- mr.go
- mr_bulk.go
- mr_comment.go
- mr_discussion.go
- pipeline.go
- project.go
- reference.go
- reference_schema.go
- release.go
- release_readiness.go
- repo.go
- repo_commit.go
- root.go
- search.go
- update.go
- update_notice.go
- update_signature.go
- user.go
- variable.go
- variable_bulk.go
Click to show internal directories.
Click to hide internal directories.