MCPcopy Create free account
hub / github.com/algolia/cli / IsUserCancellation

Function IsUserCancellation

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

Source from the content-addressed store, hash-verified

38var ErrCancel = errors.New("Error: cancelled")
39
40func IsUserCancellation(err error) bool {
41 return errors.Is(err, ErrCancel) || errors.Is(err, terminal.InterruptErr)
42}
43
44func MutuallyExclusive(message string, conditions ...bool) error {
45 numTrue := 0

Callers 5

trackOAuthFlowOutcomeFunction · 0.92
ExecuteFunction · 0.92
trackCommandCompletedFunction · 0.92
trackPlanChangeOutcomeFunction · 0.92
trackCreateOutcomeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected