-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Add support for notification on errors
Line 349 in 7ab02f2
// TODO Add support for notification on errors |
},
After: func(c *cli.Context) error {
// Handle notification at the end of the CLI app run
title := fmt.Sprintf("%s - %s Sats",
strings.Title(c.String("exchange")),
strings.Title(action),
)
// Do not notify if result is not set ( for example if the required args where not specified )
// TODO Add support for notification on errors
if result != "" {
err := nf.Notify(title, result)
9bad4f45c7757d929b14ac5cd8b39a914320f76b