mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 01:32:33 +02:00
Init
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user