send_notification

package
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "send-notification",
	Short:   "Send notification to Slack channel",
	Aliases: []string{"sn"},
	Args:    cobra.NoArgs,
	Run: func(c *cobra.Command, args []string) {
		err := slack_utils.SendNotification(slack_utils.Notification{
			URLs:    []string{FlagUrl},
			Source:  FlagSource,
			Title:   FlagTitle,
			Message: FlagMessage,
			Status:  FlagStatus,
		})

		if err != nil {
			log.Fatalln(err)
		}
	},
}
View Source
var FlagMessage string
View Source
var FlagSource string
View Source
var FlagStatus string
View Source
var FlagTitle string
View Source
var FlagUrl string

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL