MCPcopy
hub / github.com/cli/cli / newPrompter

Function newPrompter

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

Source from the content-addressed store, hash-verified

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

Callers 1

NewFunction · 0.85

Calls 2

DetermineEditorFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected