Upload images to your PDS and get instant CDN URLs via images.blue
at main 27 lines 707 B view raw
1package ui 2 3import ( 4 "github.com/gen2brain/beeep" 5) 6 7// Notify sends a cross-platform desktop notification. 8// On Linux: uses D-Bus with notify-send fallback 9// On macOS: uses osascript or terminal-notifier 10// On Windows: uses Windows Runtime COM API or PowerShell 11func Notify(title, message, icon string) error { 12 return beeep.Notify(title, message, icon) 13} 14 15// NotifyLoginRequired shows a notification telling user to run blup login 16func NotifyLoginRequired() error { 17 return Notify( 18 "blup: Login Required", 19 "Run 'blup login' in a terminal to authenticate.", 20 "", 21 ) 22} 23 24// NotifyError shows an error notification 25func NotifyError(message string) error { 26 return Notify("blup: Error", message, "") 27}