MCPcopy
hub / github.com/cli/cli / Edit

Method Edit

pkg/cmd/pr/shared/survey.go:403–409  ·  view source on GitHub ↗
(filename, initialValue string)

Source from the content-addressed store, hash-verified

401}
402
403func (e *UserEditor) Edit(filename, initialValue string) (string, error) {
404 editorCommand, err := cmdutil.DetermineEditor(e.Config)
405 if err != nil {
406 return "", err
407 }
408 return surveyext.Edit(editorCommand, filename, initialValue, e.IO.In, e.IO.Out, e.IO.ErrOut)
409}
410
411const editorHintMarker = "------------------------ >8 ------------------------"
412const editorHint = `

Callers

nothing calls this directly

Calls 2

DetermineEditorFunction · 0.92
EditFunction · 0.92

Tested by

no test coverage detected