MCPcopy
hub / github.com/charmbracelet/bubbletea / Quit

Method Quit

tea.go:1197–1199  ·  view source on GitHub ↗

Quit is a convenience function for quitting Bubble Tea programs. Use it when you need to shut down a Bubble Tea program from the outside. If you wish to quit from within a Bubble Tea program use the Quit command. If the program is not running this will be a no-op, so it's safe to call if the progr

()

Source from the content-addressed store, hash-verified

1195// If the program is not running this will be a no-op, so it's safe to call
1196// if the program is unstarted or has already exited.
1197func (p *Program) Quit() {
1198 p.Send(Quit())
1199}
1200
1201// Kill stops the program immediately and restores the former terminal state.
1202// The final render that you would normally see when quitting will be skipped.

Callers 5

TestTeaQuitFunction · 0.95
TestTeaWaitQuitFunction · 0.95
testTeaWithFilterFunction · 0.95
TestTeaBatchMsgFunction · 0.95

Calls 2

SendMethod · 0.95
QuitFunction · 0.85

Tested by 5

TestTeaQuitFunction · 0.76
TestTeaWaitQuitFunction · 0.76
testTeaWithFilterFunction · 0.76
TestTeaBatchMsgFunction · 0.76