Skip to content

Add support for notification on errors #27

@github-actions

Description

@github-actions

Add support for notification on errors

// 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions