MCPcopy Index your code
hub / github.com/dnote/dnote / newEditorCmd

Function newEditorCmd

pkg/cli/ui/editor.go:77–82  ·  view source on GitHub ↗
(ctx context.DnoteCtx, fpath string)

Source from the content-addressed store, hash-verified

75}
76
77func newEditorCmd(ctx context.DnoteCtx, fpath string) (*exec.Cmd, error) {
78 args := strings.Fields(ctx.Editor)
79 args = append(args, fpath)
80
81 return exec.Command(args[0], args[1:]...), nil
82}
83
84// GetEditorInput gets the user input by launching a text editor and waiting for
85// it to exit

Callers 1

GetEditorInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected