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

Method Edit

pkg/cmd/pr/merge/merge.go:706–713  ·  view source on GitHub ↗
(filename, startingText string)

Source from the content-addressed store, hash-verified

704}
705
706func (e *userEditor) Edit(filename, startingText string) (string, error) {
707 editorCommand, err := cmdutil.DetermineEditor(e.config)
708 if err != nil {
709 return "", err
710 }
711
712 return surveyext.Edit(editorCommand, filename, startingText, e.io.In, e.io.Out, e.io.ErrOut)
713}
714
715// blockedReason translates various MergeStateStatus GraphQL values into human-readable reason
716func blockedReason(status string, useAdmin bool) string {

Callers

nothing calls this directly

Calls 2

DetermineEditorFunction · 0.92
EditFunction · 0.92

Tested by

no test coverage detected