MCPcopy
hub / github.com/micro-editor/micro / RunCmd

Method RunCmd

internal/action/command.go:887–897  ·  view source on GitHub ↗

RunCmd runs a shell command in the background

(args []string)

Source from the content-addressed store, hash-verified

885
886// RunCmd runs a shell command in the background
887func (h *BufPane) RunCmd(args []string) {
888 runf, err := shell.RunBackgroundShell(shellquote.Join(args...))
889 if err != nil {
890 InfoBar.Error(err)
891 } else {
892 go func() {
893 InfoBar.Message(runf())
894 screen.Redraw()
895 }()
896 }
897}
898
899// QuitCmd closes the main view
900func (h *BufPane) QuitCmd(args []string) {

Callers

nothing calls this directly

Calls 5

RunBackgroundShellFunction · 0.92
RedrawFunction · 0.92
JoinMethod · 0.80
MessageMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected