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

Function newPrompter

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

Source from the content-addressed store, hash-verified

325}
326
327func newPrompter(f *cmdutil.Factory) prompter.Prompter {
328 editor, _ := cmdutil.DetermineEditor(f.Config)
329 io := f.IOStreams
330 return prompter.New(editor, io)
331}
332
333func branchFunc(f *cmdutil.Factory) func() (string, error) {
334 return func() (string, error) {

Callers 1

NewFunction · 0.85

Calls 2

DetermineEditorFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected