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

Method Edit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

DetermineEditorFunction · 0.92
EditFunction · 0.92

Tested by

no test coverage detected