MCPcopy
hub / github.com/cli/cli / CommentableInteractiveCreateIfNoneSurvey

Function CommentableInteractiveCreateIfNoneSurvey

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

Source from the content-addressed store, hash-verified

325}
326
327func CommentableInteractiveCreateIfNoneSurvey(p Prompt) func() (bool, error) {
328 return func() (bool, error) {
329 return p.Confirm("No comments found. Create one?", true)
330 }
331}
332
333func CommentableEditSurvey(cf func() (gh.Config, error), io *iostreams.IOStreams) func(string) (string, error) {
334 return func(initialValue string) (string, error) {

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected