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

Method Edit

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

Source from the content-addressed store, hash-verified

767}
768
769func (e *userEditor) Edit(filename, startingText string) (string, error) {
770 editorCommand, err := cmdutil.DetermineEditor(e.config)
771 if err != nil {
772 return "", err
773 }
774
775 return surveyext.Edit(editorCommand, filename, startingText, e.io.In, e.io.Out, e.io.ErrOut)
776}
777
778// blockedReason translates various MergeStateStatus GraphQL values into human-readable reason
779func 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