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

Function newPrompter

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

Source from the content-addressed store, hash-verified

255}
256
257func newPrompter(f *cmdutil.Factory) prompter.Prompter {
258 editor, _ := cmdutil.DetermineEditor(f.Config)
259 io := f.IOStreams
260 return prompter.New(editor, io)
261}
262
263func branchFunc(f *cmdutil.Factory) func() (string, error) {
264 return func() (string, error) {

Callers 1

NewFunction · 0.85

Calls 2

DetermineEditorFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected