MCPcopy
hub / github.com/cli/cli / IsUserCancellation

Function IsUserCancellation

pkg/cmdutil/errors.go:43–45  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

41var PendingError = errors.New("PendingError")
42
43func IsUserCancellation(err error) bool {
44 return errors.Is(err, CancelError) || errors.Is(err, terminal.InterruptErr)
45}
46
47func MutuallyExclusive(message string, conditions ...bool) error {
48 numTrue := 0

Callers 2

PreserveInputFunction · 0.92
MainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected