MCPcopy Create free account
hub / github.com/charmbracelet/bubbletea / ExecProcess

Function ExecProcess

exec.go:50–52  ·  view source on GitHub ↗

ExecProcess runs the given *exec.Cmd in a blocking fashion, effectively pausing the Program while the command is running. After the *exec.Cmd exists the Program resumes. It's useful for spawning other interactive applications such as editors and shells from within a Program. To produce the command,

(c *exec.Cmd, fn ExecCallback)

Source from the content-addressed store, hash-verified

48//
49// For non-interactive i/o you should use a Cmd (that is, a tea.Cmd).
50func ExecProcess(c *exec.Cmd, fn ExecCallback) Cmd {
51 return Exec(wrapExecCommand(c), fn)
52}
53
54// ExecCallback is used when executing an *exec.Command to return a message
55// with an error, which may or may not be nil.

Callers 3

InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85

Calls 2

ExecFunction · 0.85
wrapExecCommandFunction · 0.85

Tested by 3

InitMethod · 0.68
InitMethod · 0.68
InitMethod · 0.68