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

Function newPrompter

pkg/cmd/factory/default.go:313–317  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

311}
312
313func newPrompter(f *cmdutil.Factory) prompter.Prompter {
314 editor, _ := cmdutil.DetermineEditor(f.Config)
315 io := f.IOStreams
316 return prompter.New(editor, io)
317}
318
319func branchFunc(f *cmdutil.Factory) func() (string, error) {
320 return func() (string, error) {

Callers 1

NewFunction · 0.85

Calls 2

DetermineEditorFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected