(cmd *cobra.Command, args []string)
| 30 | } |
| 31 | |
| 32 | func notifyRun(cmd *cobra.Command, args []string) (rtnErr error) { |
| 33 | defer func() { |
| 34 | sendActivity("notify", rtnErr == nil) |
| 35 | }() |
| 36 | message := args[0] |
| 37 | notificationOptions := &wshrpc.WaveNotificationOptions{ |
| 38 | Title: notifyTitle, |
| 39 | Body: message, |
| 40 | Silent: notifySilent, |
| 41 | } |
| 42 | err := wshclient.NotifyCommand(RpcClient, *notificationOptions, &wshrpc.RpcOpts{Timeout: 2000, Route: wshutil.ElectronRoute}) |
| 43 | if err != nil { |
| 44 | return fmt.Errorf("sending notification: %w", err) |
| 45 | } |
| 46 | return nil |
| 47 | } |
nothing calls this directly
no test coverage detected