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

Function Edit

pkg/surveyext/editor_manual.go:18–20  ·  view source on GitHub ↗
(editorCommand, fn, initialValue string, stdin io.Reader, stdout io.Writer, stderr io.Writer)

Source from the content-addressed store, hash-verified

16}
17
18func Edit(editorCommand, fn, initialValue string, stdin io.Reader, stdout io.Writer, stderr io.Writer) (string, error) {
19 return edit(editorCommand, fn, initialValue, stdin, stdout, stderr, nil, defaultLookPath)
20}
21
22func defaultLookPath(name string) ([]string, []string, error) {
23 exe, err := safeexec.LookPath(name)

Callers 7

NewCmdEditFunction · 0.92
EditMethod · 0.92
CommentableEditSurveyFunction · 0.92
EditMethod · 0.92
MarkdownEditorMethod · 0.92
MarkdownEditorMethod · 0.92

Calls 1

editFunction · 0.85

Tested by

no test coverage detected