MCPcopy
hub / github.com/cli/cli / CommentableConfirmSubmitSurvey

Function CommentableConfirmSubmitSurvey

pkg/cmd/pr/shared/commentable.go:308–312  ·  view source on GitHub ↗
(p Prompt)

Source from the content-addressed store, hash-verified

306}
307
308func CommentableConfirmSubmitSurvey(p Prompt) func() (bool, error) {
309 return func() (bool, error) {
310 return p.Confirm("Submit?", true)
311 }
312}
313
314func CommentableInteractiveEditSurvey(cf func() (gh.Config, error), io *iostreams.IOStreams) func(string) (string, error) {
315 return func(initialValue string) (string, error) {

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected