mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 17:52:33 +02:00
e8e64eff12
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
16 lines
264 B
Go
16 lines
264 B
Go
package plugins
|
|
|
|
import tea "charm.land/bubbletea/v2"
|
|
|
|
func WaitForNotif(mgr *Manager) tea.Cmd {
|
|
return func() tea.Msg {
|
|
return <-mgr.Notifs
|
|
}
|
|
}
|
|
|
|
func WaitForQuit(mgr *Manager) tea.Cmd {
|
|
return func() tea.Msg {
|
|
return PluginQuitMsg{Reason: <-mgr.Quit}
|
|
}
|
|
}
|