MCPcopy Create free account
hub / github.com/cli/cli / Confirm

Method Confirm

internal/prompter/prompter.go:38–38  ·  view source on GitHub ↗

Confirm prompts the user to confirm an action.

(prompt string, defaultValue bool)

Source from the content-addressed store, hash-verified

36 Password(prompt string) (string, error)
37 // Confirm prompts the user to confirm an action.
38 Confirm(prompt string, defaultValue bool) (bool, error)
39
40 // gh specific prompts
41

Callers 2

ConfirmMethod · 0.65
TestAccessiblePrompterFunction · 0.65

Implementers 4

PrompterMockinternal/prompter/prompter_mock.go
huhPrompterinternal/prompter/huh_prompter.go
accessiblePrompterinternal/prompter/prompter.go
surveyPrompterinternal/prompter/prompter.go

Calls

no outgoing calls

Tested by 1

TestAccessiblePrompterFunction · 0.52